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