From 286704beddf7a4b3bf5bcdfa7a7ea4e32110d7d3 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 28 Jul 2014 15:02:27 -0400 Subject: Fixed the proper recursive application of spaced on Windows tabs by having container.resize() also take the origin coordinates as arguments. --- redo/window_darwin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'redo/window_darwin.go') diff --git a/redo/window_darwin.go b/redo/window_darwin.go index 8474c8a..40c3ddf 100644 --- a/redo/window_darwin.go +++ b/redo/window_darwin.go @@ -77,6 +77,7 @@ func windowClosing(xw unsafe.Pointer) C.BOOL { //export windowResized func windowResized(xw unsafe.Pointer, width C.uintptr_t, height C.uintptr_t) { w := (*window)(unsafe.Pointer(xw)) - w.resize(int(width), int(height)) + // the origin of the window's content area is always (0, 0) + w.resize(0, 0, int(width), int(height)) fmt.Printf("new size %d x %d\n", width, height) } -- cgit v1.2.3