mirror of
https://github.com/rivo/tview.git
synced 2024-11-07 03:20:39 +00:00
Documentation fix for flex.AddItem()
The proportion must be at least 1 if fixedSize == 0.
This commit is contained in:
parent
6b7d028eb1
commit
bf464200bc
4
flex.go
4
flex.go
@ -69,8 +69,8 @@ func (f *Flex) SetFullScreen(fullScreen bool) *Flex {
|
||||
// that its size is flexible and may be changed. The "proportion" argument
|
||||
// defines the relative size of the item compared to other flexible-size items.
|
||||
// For example, items with a proportion of 2 will be twice as large as items
|
||||
// with a proportion of 1. Must be at least 1 if fixedSize > 0 (ignored
|
||||
// otherwise)
|
||||
// with a proportion of 1. The proportion must be at least 1 if fixedSize == 0
|
||||
// (ignored otherwise).
|
||||
//
|
||||
// If "focus" is set to true, the item will receive focus when the Flex
|
||||
// primitive receives focus. If multiple items have the "focus" flag set to
|
||||
|
Loading…
Reference in New Issue
Block a user