MCPcopy Create free account
hub / github.com/MyGUI/mygui / updateSize

Method updateSize

Tools/LayoutEditor/PanelExtensionProperties.cpp:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 void PanelExtensionProperties::updateSize()
74 {
75 int height = 0;
76
77 for (auto& field : mFields)
78 {
79 MyGUI::IntSize size = field->getContentSize();
80 field->setCoord(MyGUI::IntCoord(0, height, mMainWidget->getWidth(), size.height));
81 height += size.height;
82 }
83
84 mPanelCell->setClientHeight(height);
85 }
86
87 void PanelExtensionProperties::destroyPropertyFields()
88 {

Callers

nothing calls this directly

Calls 5

setClientHeightMethod · 0.80
IntCoordFunction · 0.50
getContentSizeMethod · 0.45
setCoordMethod · 0.45
getWidthMethod · 0.45

Tested by

no test coverage detected