MCPcopy Index your code
hub / github.com/lxn/walk / SetAlwaysConsumeSpace

Method SetAlwaysConsumeSpace

widget.go:284–290  ·  view source on GitHub ↗

SetAlwaysConsumeSpace sets if the Widget should consume space even if it is not visible.

(b bool)

Source from the content-addressed store, hash-verified

282// SetAlwaysConsumeSpace sets if the Widget should consume space even if it is
283// not visible.
284func (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.
293func (wb *WidgetBase) Parent() Container {

Callers

nothing calls this directly

Calls 1

RequestLayoutMethod · 0.65

Tested by

no test coverage detected