Fixed Split Window
authorChoi Munseok <ms47.choi@samsung.com>
Wed, 11 Sep 2013 05:43:20 +0000 (14:43 +0900)
committerChoi Munseok <ms47.choi@samsung.com>
Wed, 11 Sep 2013 05:43:20 +0000 (14:43 +0900)
Change-Id: I3518c63897f747cd0d845708a08d4a8a5869848a
Signed-off-by: Choi Munseok <ms47.choi@samsung.com>
src/ui/FUi_EcoreEvas.cpp
src/ui/FUi_Window.cpp
src/ui/controls/FUiCtrl_Frame.cpp

index 9931d42..5ecae6a 100644 (file)
@@ -386,8 +386,7 @@ OnWindowConfigured(void* pData, int type, void* pEvent)
        Ecore_X_Window win = (Ecore_X_Window)pFrame->GetNativeHandle();
        Dimension screenSize = pControlManager->GetScreenSize();
 
-// _PARTIAL_SCREEN_
-#if 0
+#if 0 // Partial Screen
        if (win != targetWin)
        {
                return ECORE_CALLBACK_PASS_ON;
@@ -405,6 +404,14 @@ OnWindowConfigured(void* pData, int type, void* pEvent)
                        pFrame->SetPartialScreenEnabled(true);
                }
        }
+       else if (pFrame->GetShowMode() == FRAME_SHOW_MODE_PARTIAL_SCREEN)
+       {
+               Dimension winSize = _CoordinateSystemUtils::InverseTransform(Dimension(pE->w, pE->h));
+               if (winSize == screenSize)
+               {
+                       pFrame->SetPartialScreenEnabled(false);
+               }
+       }
 #else
        if ((pFrame->GetShowMode() == FRAME_SHOW_MODE_FULL_SCREEN) || (win != targetWin))
        {
@@ -451,8 +458,7 @@ OnWindowConfigured(void* pData, int type, void* pEvent)
                pFrame->SetChangedPositionByUser(isChanged);
                pFrame->SetChangingBoundsEnabled(true);
 
-// _PARTIAL_SCREEN_
-#if 0
+#if 0 // Partial Screen
                Rectangle frameBounds = pFrame->GetBounds();
                Rectangle frameClientBounds = pFrame->GetClientBounds();
                Rectangle frameAbsoluteBounds = pFrame->GetAbsoluteBounds();
index e3d7d97..a1b418b 100644 (file)
@@ -706,8 +706,7 @@ _Window::OnWindowStateChanged(void)
                                        pFormImpl->UpdateOrientation();
                                }
 
-// _PARTIAL_SCREEN_
-#if 0
+#if 0 // Partial Screen
                                Rectangle frameBounds = GetBounds();
                                Rectangle frameClientBounds = GetClientBounds();
                                Rectangle frameAbsoluteBounds = GetAbsoluteBounds();
index d8f0d76..e4aa8a9 100644 (file)
@@ -1030,6 +1030,10 @@ _Frame::SetPartialScreenEnabled(bool enable)
        {
                __showMode = FRAME_SHOW_MODE_PARTIAL_SCREEN;
        }
+       else
+       {
+               SetShowMode(FRAME_SHOW_MODE_FULL_SCREEN);
+       }
 }
 
 Tizen::Base::Collection::IListT<_Control*>*