summaryrefslogtreecommitdiff
path: root/redo/window_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-28 15:02:27 -0400
committerPietro Gagliardi <[email protected]>2014-07-28 15:02:27 -0400
commit286704beddf7a4b3bf5bcdfa7a7ea4e32110d7d3 (patch)
treeafe620872b92c1ba3824ba2153d92473226ab284 /redo/window_windows.go
parent13bcf728baf81705ddd09c72991893bffa34b8ae (diff)
Fixed the proper recursive application of spaced on Windows tabs by having container.resize() also take the origin coordinates as arguments.
Diffstat (limited to 'redo/window_windows.go')
-rw-r--r--redo/window_windows.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/redo/window_windows.go b/redo/window_windows.go
index 2287039..1a36c01 100644
--- a/redo/window_windows.go
+++ b/redo/window_windows.go
@@ -96,7 +96,8 @@ func storeWindowHWND(data unsafe.Pointer, hwnd C.HWND) {
//export windowResize
func windowResize(data unsafe.Pointer, r *C.RECT) {
w := (*window)(data)
- w.resize(int(r.right - r.left), int(r.bottom - r.top))
+ // the origin of the window's content area is always (0, 0), but let's use the values from the RECT just to be safe
+ w.resize(int(r.left), int(r.top), int(r.right - r.left), int(r.bottom - r.top))
}
//export windowClosing