fix check handler position while rotating
authorMyung Jin Kim <critical.kim@samsung.com>
Mon, 22 Apr 2013 09:22:28 +0000 (18:22 +0900)
committerMyung Jin Kim <critical.kim@samsung.com>
Mon, 22 Apr 2013 09:22:28 +0000 (18:22 +0900)
Change-Id: I6edee97a44ae9f657da017ca00d08704ffeeea46

src/ui/controls/FUiCtrl_CheckButton.cpp

index 5bc05e8..c93b5d1 100644 (file)
@@ -578,6 +578,12 @@ _CheckButton::OnBoundsChanged(void)
                __pDetailButtonElement->SetBounds(FloatRectangle(__pCheckButtonPresenter->GetDetailedButtonBoundsF()));
        }
 
+       if (__checkButtonStyle == CHECK_BUTTON_STYLE_ONOFF_SLIDING || __checkButtonStyle == CHECK_BUTTON_STYLE_ONOFF_SLIDING_WITH_DIVIDER)
+       {
+               __pCheckButtonPresenter->CalculateButtonBounds();
+               __pCheckButtonPresenter->AdjustHandlerPosition();
+       }
+
        return;
 }