Rollback - Fix animation defect - N_SE-51398
authorJaewon Cho <jaewon7.cho@samsung.com>
Mon, 9 Sep 2013 10:44:30 +0000 (19:44 +0900)
committerJaewon Cho <jaewon7.cho@samsung.com>
Mon, 9 Sep 2013 10:44:30 +0000 (19:44 +0900)
Change-Id: I6a4e77ed08923634e908ca2e68a68970ebc44eea
Signed-off-by: Jaewon Cho <jaewon7.cho@samsung.com>
src/ui/FUi_Control.cpp

index 7e315d9..b14b180 100644 (file)
@@ -3025,23 +3025,17 @@ result
 _Control::UpdateBoundsOfVisualElement(const FloatRectangle& controlBounds)
 {
        FloatRectangle rect(controlBounds.x, controlBounds.y, controlBounds.width, controlBounds.height);
-       FloatRectangle previousBounds = GetVisualElement()->GetBounds();
 
-       const bool moved = (previousBounds.x != rect.x) || (previousBounds.y != rect.y);
-       const bool resized = (previousBounds.width != rect.width) || (previousBounds.height != rect.height);
-
-       if (moved || resized)
+       _Control* pParent = GetParent();
+       if (__area == _CONTROL_AREA_CLIENT && pParent)
        {
-               _Control* pParent = GetParent();
-               if (__area == _CONTROL_AREA_CLIENT && pParent)
-               {
-                       const FloatRectangle clientBounds = pParent->GetClientBoundsF();
-                       rect.x += clientBounds.x;
-                       rect.y += clientBounds.y;
-               }
-
-               GetVisualElement()->SetBounds(rect);
+               const FloatRectangle clientBounds = pParent->GetClientBoundsF();
+               rect.x += clientBounds.x;
+               rect.y += clientBounds.y;
        }
+
+       GetVisualElement()->SetBounds(rect);
+
        return E_SUCCESS;
 }