Fixed SetWindowBounds
authorChoi Munseok <ms47.choi@samsung.com>
Fri, 21 Jun 2013 05:31:08 +0000 (14:31 +0900)
committerChoi Munseok <ms47.choi@samsung.com>
Fri, 21 Jun 2013 05:31:08 +0000 (14:31 +0900)
Change-Id: I83eaeee2636eb728e891d803415a2524b02415cf
Signed-off-by: Choi Munseok <ms47.choi@samsung.com>
src/ui/FUi_EcoreEvas.cpp

index 4be8938..32ffc40 100644 (file)
@@ -2360,15 +2360,11 @@ _EcoreEvas::SetWindowBounds(const _Window& window, const Rectangle& bounds)
 
        int rotate = ecore_evas_rotation_get(pEcoreEvas);
 
-       _Window* pWindow = const_cast<_Window*>(&window);
-
-       _ContextMenu* pContextMenu = dynamic_cast<_ContextMenu*>(pWindow);
-       if (pContextMenu)
+//     _Window* pWindow = const_cast<_Window*>(&window);
+//     _ContextMenu* pContextMenu = dynamic_cast<_ContextMenu*>(pWindow);
+//     if (pContextMenu)
+       if ((window.IsOrientationRoot() == false) && (window.IsRotationSynchronized() == false))
        {
-               // [Exception]
-               // ContextMenu
-               // Skip
-
                _ControlManager* pControlManager = _ControlManager::GetInstance();
                if (pControlManager)
                {
@@ -2452,15 +2448,11 @@ _EcoreEvas::SetWindowBounds(const _Window& window, const FloatRectangle& bounds)
 
        int rotate = ecore_evas_rotation_get(pEcoreEvas);
 
-       _Window* pWindow = const_cast<_Window*>(&window);
-
-       _ContextMenu* pContextMenu = dynamic_cast<_ContextMenu*>(pWindow);
-       if (pContextMenu)
+//     _Window* pWindow = const_cast<_Window*>(&window);
+//     _ContextMenu* pContextMenu = dynamic_cast<_ContextMenu*>(pWindow);
+//     if (pContextMenu)
+       if ((window.IsOrientationRoot() == false) && (window.IsRotationSynchronized() == false))
        {
-               // [Exception]
-               // ContextMenu
-               // Skip
-
                _ControlManager* pControlManager = _ControlManager::GetInstance();
                if (pControlManager)
                {