Change-Id: I59f070b9d9a2ded669caa3039107424645fed13d
Signed-off-by: Sreedeep Moulik <sreedeep.m@samsung.com>
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();