From 92afc9b9447b4ce8961a0c9a02802c5300f886b5 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 25 Jun 2014 22:43:35 -0400 Subject: Integrated the new sizing system into Grid and Stack. --- controlsize.go | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'controlsize.go') 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 -- cgit v1.2.3