summaryrefslogtreecommitdiff
path: root/redo/containers_unix.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/containers_unix.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/containers_unix.go')
-rw-r--r--redo/containers_unix.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/redo/containers_unix.go b/redo/containers_unix.go
index fbb63ee..a6fe832 100644
--- a/redo/containers_unix.go
+++ b/redo/containers_unix.go
@@ -66,5 +66,6 @@ func (t *tab) allocate(x int, y int, width int, height int, d *sizing) []*alloca
//export layoutResizing
func layoutResizing(wid *C.GtkWidget, r *C.GdkRectangle, data C.gpointer) {
c := (*container)(unsafe.Pointer(data))
- c.resize(int(r.width), int(r.height))
+ // the layout's coordinate system is localized, so the origin is (0, 0)
+ c.resize(0, 0, int(r.width), int(r.height))
}