From 2967ab175248f547eaa0d87aed434047ed78e292 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 26 Jun 2014 03:37:16 -0400 Subject: [PATCH] Changed the commit order in controlsize.go to be from right to left rather than from left to right; this will make the label positioning calculations on Mac OS X make sense. --- controlsize.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controlsize.go b/controlsize.go index d0a5eaf..98563da 100644 --- a/controlsize.go +++ b/controlsize.go @@ -32,8 +32,9 @@ func (s *sysData) resizeWindow(width, height int) { d := s.beginResize() allocations := s.allocate(0, 0, width, height, d) s.translateAllocationCoords(allocations, width, height) - for _, c := range allocations { - c.this.commitResize(c, d) + // move in reverse so as to approximate right->left order so neighbors make sense + for i := len(allocations) - 1; i >= 0; i-- { + allocations[i].this.commitResize(allocations[i], d) } s.endResize(d) }