diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-26 03:37:16 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-26 03:37:16 -0400 |
| commit | 2967ab175248f547eaa0d87aed434047ed78e292 (patch) | |
| tree | 63da72e39d67ec9cb5fdc392ed6090945d112a62 | |
| parent | 0b4c6a9228b5d6c3a69ff55a7b989f8d744b6756 (diff) | |
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.
| -rw-r--r-- | controlsize.go | 5 |
1 files 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) } |
