recalcStatus recalculates and sets the position and size of the status panel and its label
()
| 1290 | |
| 1291 | // recalcStatus recalculates and sets the position and size of the status panel and its label |
| 1292 | func (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: |
no test coverage detected