summaryrefslogtreecommitdiff
path: root/controlsize.go
diff options
context:
space:
mode:
Diffstat (limited to 'controlsize.go')
-rw-r--r--controlsize.go14
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