reset customcontrolbase focus ring when orientation is changed
authorkeonpyo.kong <keonpyo.kong@samsung.com>
Mon, 30 Sep 2013 02:14:18 +0000 (11:14 +0900)
committerkeonpyo.kong <keonpyo.kong@samsung.com>
Mon, 30 Sep 2013 02:14:34 +0000 (11:14 +0900)
Change-Id: I2923dcd48ba37a70a6e8b974e2039ab1e86ad498
Signed-off-by: keonpyo.kong <keonpyo.kong@samsung.com>
src/ui/FUi_CustomControlBaseImpl.cpp

index 6dd9eac..0679f35 100644 (file)
@@ -121,6 +121,16 @@ _CustomControlBaseImpl::OnBoundsChanging(const Rectangle& bounds)
 void
 _CustomControlBaseImpl::OnBoundsChanged(void)
 {
+       bool isFocusMode = GetCore().IsFocusModeStateEnabled();
+       bool isFocus = GetCore().IsFocused();
+       if (isFocusMode)
+       {
+               GetCore().RemoveFocusRing(true);
+               if (isFocus)
+               {
+                       GetCore().DrawFocus();
+               }
+       }
        GetPublic().OnBoundsChanged(__oldBounds, GetBounds());
 }