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

Method recalcStatus

gui/table.go:1292–1301  ·  view source on GitHub ↗

recalcStatus recalculates and sets the position and size of the status panel and its label

()

Source from the content-addressed store, hash-verified

1290
1291// recalcStatus recalculates and sets the position and size of the status panel and its label
1292func (t *Table) recalcStatus() {
1293
1294 if !t.statusPanel.Visible() {
1295 return
1296 }
1297 t.statusPanel.SetContentHeight(t.statusLabel.Height())
1298 py := t.ContentHeight() - t.statusPanel.Height()
1299 t.statusPanel.SetPosition(0, py)
1300 t.statusPanel.SetWidth(t.ContentWidth())
1301}
1302
1303// recalc calculates the visibility, positions and sizes of all row cells.
1304// should be called in the following situations:

Callers 2

ShowStatusMethod · 0.95
onResizeMethod · 0.95

Calls 7

SetContentHeightMethod · 0.80
ContentHeightMethod · 0.80
SetWidthMethod · 0.80
ContentWidthMethod · 0.80
VisibleMethod · 0.65
HeightMethod · 0.65
SetPositionMethod · 0.65

Tested by

no test coverage detected