More documentation fixups.

This commit is contained in:
Pietro Gagliardi 2014-02-25 15:44:57 -05:00
parent cd73e42850
commit 700cbbec7e
1 changed files with 2 additions and 2 deletions

View File

@ -165,8 +165,8 @@ func (s *Stack) preferredSize() (width int, height int, err error) {
} }
// Space returns a null control intended for padding layouts with blank space where otherwise impossible (for instance, at the beginning or in the middle of a Stack). // Space returns a null control intended for padding layouts with blank space where otherwise impossible (for instance, at the beginning or in the middle of a Stack).
// In order for Space() to work, it must be marked as stretchy in its parent layout; otherwise its size is undefined. // In order for a Space to work, it must be marked as stretchy in its parent layout; otherwise its size is undefined.
func Space() Control { func Space() Control {
// As above, a stack with no controls draws nothing and reports no errors; its parent will still size it properly. // As above, a Stack with no controls draws nothing and reports no errors; its parent will still size it properly if made stretchy.
return NewStack(Horizontal) return NewStack(Horizontal)
} }