Fixed logic calculating clientbounds and absbounds.
authorKeuckdo Bang <keuckdo.bang@samsung.net>
Fri, 22 Mar 2013 07:54:00 +0000 (16:54 +0900)
committerKeuckdo Bang <keuckdo.bang@samsung.net>
Fri, 22 Mar 2013 07:54:00 +0000 (16:54 +0900)
Change-Id: I2b65d1d56142109a541cbf813863ef4bfe53f844

src/ui/FUi_Control.cpp

index 347fb65..470d84f 100755 (executable)
@@ -2875,9 +2875,9 @@ _Control::UpdateBoundsOfVisualElement(const FloatRectangle& controlBounds)
        _Control* pParent = GetParent();
        if (__area == _CONTROL_AREA_CLIENT && pParent)
        {
-               const Rectangle clientBounds = pParent->GetClientBounds();
-               rect.x += (float)clientBounds.x;
-               rect.y += (float)clientBounds.y;
+               const FloatRectangle clientBounds = pParent->GetClientBoundsF();
+               rect.x += clientBounds.x;
+               rect.y += clientBounds.y;
        }
 
        GetVisualElement()->SetBounds(rect);