|
|
@@ -543,9 +543,6 @@ void Container::updateState(State state)
|
|
|
|
|
|
void Container::updateBounds()
|
|
|
{
|
|
|
- // Compute total bounds of container
|
|
|
- Control::updateBounds();
|
|
|
-
|
|
|
// Handle automatically sizing based on our children
|
|
|
if (_autoSize != AUTO_SIZE_NONE)
|
|
|
{
|
|
|
@@ -590,6 +587,9 @@ void Container::updateBounds()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // Compute total bounds of container
|
|
|
+ Control::updateBounds();
|
|
|
+
|
|
|
// Update layout to position children correctly within us
|
|
|
GP_ASSERT(_layout);
|
|
|
_layout->update(this);
|