SplitPanel Fix for Issue N_SE_39157 - Tizen2.1 Branch
authorSreedeep Moulik <sreedeep.m@samsung.com>
Fri, 24 May 2013 11:39:47 +0000 (17:09 +0530)
committerSreedeep Moulik <sreedeep.m@samsung.com>
Fri, 24 May 2013 11:39:47 +0000 (17:09 +0530)
Change-Id: I59f070b9d9a2ded669caa3039107424645fed13d
Signed-off-by: Sreedeep Moulik <sreedeep.m@samsung.com>
src/ui/controls/FUiCtrl_SplitPanel.cpp

index c1a62e2..5164f56 100644 (file)
@@ -327,9 +327,19 @@ _SplitPanel::OnBoundsChanged(void)
 
        GET_SHAPE_CONFIG(SPLITPANEL::MOVABLE_DIVIDER_THICKNESS, orientation, dividerThickness);
 
-       if (GetMaximumDividerPosition() > (bounds.width - dividerThickness))
+       if (GetDividerDirection() == SPLIT_PANEL_DIVIDER_DIRECTION_VERTICAL)
        {
-               SetMaximumDividerPosition(bounds.width - dividerThickness);
+               if (GetMaximumDividerPosition() > (bounds.width - dividerThickness))
+               {
+                       SetMaximumDividerPosition(bounds.width - dividerThickness);
+               }
+       }
+       else
+       {
+               if (GetMaximumDividerPosition() > (bounds.height - dividerThickness))
+               {
+                       SetMaximumDividerPosition(bounds.height - dividerThickness);
+               }
        }
 
        __pSplitPanelPresenter->OnBoundsChanged();