Disambiguated what happens when a regular Label is used in a Standalone context.
This commit is contained in:
parent
bdc8aac4d6
commit
b1902686ca
|
@ -67,6 +67,7 @@ func NewPasswordField() TextField {
|
||||||
// Label is a Control that shows a static line of text.
|
// Label is a Control that shows a static line of text.
|
||||||
// Label shows one line of text; any text that does not fit is truncated.
|
// Label shows one line of text; any text that does not fit is truncated.
|
||||||
// A Label can either have smart vertical alignment relative to the control to its right or just be vertically aligned to the top (standalone).
|
// A Label can either have smart vertical alignment relative to the control to its right or just be vertically aligned to the top (standalone).
|
||||||
|
// The effect of placing a non-standalone Label in any context other than to the immediate left of a Control (TODO currently basic Control only? recheck Stack/Grid code) is undefined.
|
||||||
type Label interface {
|
type Label interface {
|
||||||
Control
|
Control
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue