MCPcopy
hub / github.com/g3n/engine / SetContentHeight

Method SetContentHeight

gui/panel.go:477–480  ·  view source on GitHub ↗

SetContentHeight sets this panel content height to the specified dimension in pixels. The external size of the panel may increase or decrease to accommodate the new width

(height float32)

Source from the content-addressed store, hash-verified

475// SetContentHeight sets this panel content height to the specified dimension in pixels.
476// The external size of the panel may increase or decrease to accommodate the new width
477func (p *Panel) SetContentHeight(height float32) {
478
479 p.SetContentSize(p.content.Width, height)
480}
481
482// MinWidth returns the minimum width of this panel (ContentWidth = 0)
483func (p *Panel) MinWidth() float32 {

Callers 11

autoSizeMethod · 0.80
NewDropDownFunction · 0.80
recalcMethod · 0.80
recalcMethod · 0.80
recalcHeaderMethod · 0.80
recalcStatusMethod · 0.80
recalcRowMethod · 0.80
recalcMethod · 0.80
recalcMethod · 0.80
recalcMethod · 0.80
newListItemFunction · 0.80

Calls 1

SetContentSizeMethod · 0.95

Tested by

no test coverage detected