Fix the Ime Rotation
authorChoi Munseok <ms47.choi@samsung.com>
Fri, 12 Apr 2013 10:59:44 +0000 (19:59 +0900)
committerChoi Munseok <ms47.choi@samsung.com>
Fri, 12 Apr 2013 10:59:44 +0000 (19:59 +0900)
Change-Id: I6e5fa3550772c6eec73a5a7fda200ea53f8eeca5
Signed-off-by: Choi Munseok <ms47.choi@samsung.com>
src/ui/FUi_ImeOrientationAgent.cpp

index 797e1ef..a19857a 100644 (file)
@@ -133,6 +133,27 @@ _ImeOrientationAgent::UpdateOrientation(int angle)
 
        int rotation = angle;
 
+       _RootVisualElement* pRootVisualElement = pRootWindow->GetRootVisualElement();
+       if (!pRootVisualElement)
+       {
+               SysLog(NID_UI, "[Ime Rotation] The root visual element is null.");
+               return;
+       }
+
+       _EflLayer* pLayer = static_cast<_EflLayer*>(pRootVisualElement->GetNativeLayer());
+       if (!pLayer)
+       {
+               SysLog(NID_UI, "[Ime Rotation] The efl layer is null.");
+               return;
+       }
+
+       Evas_Object* pWinObj = pLayer->GetElmWin();
+
+       if (pWinObj)
+       {
+               elm_win_rotation_with_resize_set(pWinObj, rotation);
+       }
+
        OrientationStatus status = ORIENTATION_STATUS_NONE;
        switch (rotation)
        {
@@ -154,27 +175,6 @@ _ImeOrientationAgent::UpdateOrientation(int angle)
 
        FireEvent(status);
        pImpl->Invalidate(true);
-
-       _RootVisualElement* pRootVisualElement = pRootWindow->GetRootVisualElement();
-       if (!pRootVisualElement)
-       {
-               SysLog(NID_UI, "[Ime Rotation] The root visual element is null.");
-               return;
-       }
-
-       _EflLayer* pLayer = static_cast<_EflLayer*>(pRootVisualElement->GetNativeLayer());
-       if (!pLayer)
-       {
-               SysLog(NID_UI, "[Ime Rotation] The efl layer is null.");
-               return;
-       }
-
-       Evas_Object* pWinObj = pLayer->GetElmWin();
-
-       if (pWinObj)
-       {
-               elm_win_rotation_with_resize_set(pWinObj, rotation);
-       }
 }
 
 void