diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-06 10:50:07 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-06 10:50:07 -0400 |
| commit | d307848c8cec7746900aab1edc27d32e9e57be5a (patch) | |
| tree | 7a8cf4a3b4f679cbedda10c29b873f2af70ad9a4 /redo/stack.go | |
| parent | b3b91c68d0b2613700cf84b5887b5ac79da0eb56 (diff) | |
Removed leftover TODOs: container does handle margins now.
Diffstat (limited to 'redo/stack.go')
| -rw-r--r-- | redo/stack.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/redo/stack.go b/redo/stack.go index 739934d..4f1aca8 100644 --- a/redo/stack.go +++ b/redo/stack.go @@ -137,7 +137,6 @@ func (s *Stack) allocate(x int, y int, width int, height int, d *sizing) (alloca } // The preferred size of a Stack is the sum of the preferred sizes of non-stretchy controls + (the number of stretchy controls * the largest preferred size among all stretchy controls). -// We don't consider the margins here, but will need to in container if Window.SizeToFit() is ever made a thing. TODO func (s *Stack) preferredSize(d *sizing) (width int, height int) { max := func(a int, b int) int { if a > b { |
