Recalc is called by the panel which has this layout
(ipan IPanel)
| 21 | |
| 22 | // Recalc is called by the panel which has this layout |
| 23 | func (f *FillLayout) Recalc(ipan IPanel) { |
| 24 | |
| 25 | parent := ipan.GetPanel() |
| 26 | children := parent.Children() |
| 27 | if len(children) == 0 { |
| 28 | return |
| 29 | } |
| 30 | child := children[0].(IPanel).GetPanel() |
| 31 | |
| 32 | if f.width { |
| 33 | child.SetWidth(parent.ContentWidth()) |
| 34 | } |
| 35 | if f.height { |
| 36 | child.SetHeight(parent.ContentHeight()) |
| 37 | } |
| 38 | } |
nothing calls this directly
no test coverage detected