diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-25 22:43:35 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-25 22:43:35 -0400 |
| commit | 92afc9b9447b4ce8961a0c9a02802c5300f886b5 (patch) | |
| tree | 5c46aec8a24fe2287f6e003c3ddacb3f8c0663b9 /controlsize.go | |
| parent | 08922103a75b7351e936134d24930476400817f2 (diff) | |
Integrated the new sizing system into Grid and Stack.
Diffstat (limited to 'controlsize.go')
| -rw-r--r-- | controlsize.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/controlsize.go b/controlsize.go index d4d9d31..7a608d2 100644 --- a/controlsize.go +++ b/controlsize.go @@ -38,17 +38,3 @@ type controlSizing interface { commitResize(c *allocation, d *sysSizeData) getAuxResizeInfo(d *sysSizeData) } - -// vertical stack: no concept of neighbor, but not too hard to add a vertical neighbor -// horizontal stack: - var current *allocation - // ... - as := s.controls[i].allocate(...) - if current != nil { - current.neighbor = as[0].self - } - current = as[0] - // append all of as -// grid: - // same as above, except current is set to nil on each new row - // adding a vertical neighbor would require storing an extra list |
