SysLogException(NID_UI_CTRL, r, "[%s] SetBounds failed", GetErrorMessage(r));
}
- SetChildBuilderBouds(this, controlOrientation);
+ SetChildBuilderBounds(this, controlOrientation);
}
}
}
void
-_PanelImpl::SetChildBuilderBouds(_ContainerImpl* pContainerImpl, _ControlOrientation controlOrientation)
+_PanelImpl::SetChildBuilderBounds(_ContainerImpl* pContainerImpl, _ControlOrientation controlOrientation)
{
FloatRectangle builderBounds;
_ContainerImpl* pTempContainerImpl;
for(int i = 0; i < pContainerImpl->GetChildCount(); i++)
{
_ControlImpl* pControlImpl = pContainerImpl->GetChild(i);
- pControlImpl->GetBuilderBoundsF(controlOrientation, builderBounds);
+ bool exist = pControlImpl->GetBuilderBoundsF(controlOrientation, builderBounds);
+ if (!exist)
+ {
+ continue;
+ }
+
pControlImpl->SetBounds(builderBounds);
pTempContainerImpl = dynamic_cast<_ContainerImpl*>(pControlImpl);
if (pTempContainerImpl != null)
{
- SetChildBuilderBouds(pTempContainerImpl, controlOrientation);
+ SetChildBuilderBounds(pTempContainerImpl, controlOrientation);
}
}
protected:
_PanelImpl(Control* pPublic, _Control* pCore, Layout* pPublicPortraitLayout = null, Layout* pPublicLandscapeLayout = null);
- void SetChildBuilderBouds(_ContainerImpl* pContainerImpl, _ControlOrientation controlOrientation);
+ void SetChildBuilderBounds(_ContainerImpl* pContainerImpl, _ControlOrientation controlOrientation);
private:
// The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.