summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-07 19:31:57 -0500
committerPietro Gagliardi <[email protected]>2014-03-07 19:31:57 -0500
commitbca8979b3611f500f16c62dd0a2fa6598fca36d3 (patch)
treea6fa716f9174c4213e4f4766258e5eb51b3738cd
parent9dc6e6f7b39e9a3615ce21e2e03f82315038a470 (diff)
More Space() documentation fixes; also a TODO for Space().
-rw-r--r--stack.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/stack.go b/stack.go
index 2e4af36..cfaf510 100644
--- a/stack.go
+++ b/stack.go
@@ -188,8 +188,9 @@ func (s *Stack) preferredSize() (width int, height int, err error) {
//
// For a Stack, Space can be used to insert spaces in the beginning or middle of Stacks (Stacks by nature handle spaces at the end themselves). In order for this to work properly, make the Space stretchy.
//
-// For a Grid, Space can be used to have an empty cell. A stretchy Grid cell with a Space can be used to anchor the perimeter of a Grid to the respective Window edges without resizing the other controls (leaving empty space in the Window otherwise). Otherwise, you do not need to do anything special for the Space to work (though remember that an entire row or column of Spaces will appear as having height or width zero, respectively, unless one is marked as stretchy).
+// For a Grid, Space can be used to have an empty cell. A stretchy Grid cell with a Space can be used to anchor the perimeter of a Grid to the respective Window edges without making one of the other controls stretchy instead (leaving empty space in the Window otherwise). Otherwise, you do not need to do anything special for the Space to work (though remember that an entire row or column of Spaces will appear as having height or width zero, respectively, unless one is marked as stretchy).
func Space() Control {
// As above, a Stack with no controls draws nothing and reports no errors; its parent will still size it properly if made stretchy.
+ // TODO just have one shared Space implementation control instead of making a new one each time?
return newStack(horizontal)
}