SetAlwaysConsumeSpace sets if the Widget should consume space even if it is not visible.
(b bool)
| 282 | // SetAlwaysConsumeSpace sets if the Widget should consume space even if it is |
| 283 | // not visible. |
| 284 | func (wb *WidgetBase) SetAlwaysConsumeSpace(b bool) error { |
| 285 | wb.alwaysConsumeSpace = b |
| 286 | |
| 287 | wb.RequestLayout() |
| 288 | |
| 289 | return nil |
| 290 | } |
| 291 | |
| 292 | // Parent returns the Container of the WidgetBase. |
| 293 | func (wb *WidgetBase) Parent() Container { |
nothing calls this directly
no test coverage detected