| 89 | } |
| 90 | |
| 91 | void PanelMainProperties::updateSize() |
| 92 | { |
| 93 | int height = 0; |
| 94 | |
| 95 | for (auto& field : mFields) |
| 96 | { |
| 97 | if (field.second->getVisible()) |
| 98 | { |
| 99 | MyGUI::IntSize size = field.second->getContentSize(); |
| 100 | field.second->setCoord(MyGUI::IntCoord(0, height, mMainWidget->getWidth(), size.height)); |
| 101 | height += size.height; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | mPanelCell->setClientHeight(height); |
| 106 | } |
| 107 | |
| 108 | void PanelMainProperties::destroyPropertyFields() |
| 109 | { |
nothing calls this directly
no test coverage detected