Removed unnecessary resizing a window
authorChoi Munseok <ms47.choi@samsung.com>
Mon, 10 Jun 2013 00:17:07 +0000 (09:17 +0900)
committerChoi Munseok <ms47.choi@samsung.com>
Mon, 10 Jun 2013 00:17:07 +0000 (09:17 +0900)
Change-Id: I607fc1444d79f57f9a38047d145e2b65ec2d114d
Signed-off-by: Choi Munseok <ms47.choi@samsung.com>
src/ui/FUi_EcoreEvas.cpp

index 3fbf51b..72a5399 100644 (file)
@@ -1368,20 +1368,20 @@ _EcoreEvas::RotateWindow(const _Window& window, int orientation, bool rotateEvas
                if (rotateEvas == true)
                {
                        ecore_evas_rotation_with_resize_set(pEcoreEvas, orientation);
-               }
 
-               evas_object_move(pWinObj, 0, 0);
+                       evas_object_move(pWinObj, 0, 0);
 
-               if ((orientation == 0) || (orientation == 180))
-               {
-                       evas_object_resize(pWinObj, rootW, rootH);
-               }
-               else
-               {
-                       evas_object_resize(pWinObj, rootH, rootW);
-               }
+                       if ((orientation == 0) || (orientation == 180))
+                       {
+                               evas_object_resize(pWinObj, rootW, rootH);
+                       }
+                       else
+                       {
+                               evas_object_resize(pWinObj, rootH, rootW);
+                       }
 
-               SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x, FULL SCREEN] Rotate bounds(rot = %d).", win, orientation);
+                       SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x, FULL SCREEN] Rotate bounds(rot = %d).", win, orientation);
+               }
        }
        else
        {