bug fix OnAncestorVisibleStateChanged
authorkeonpyo.kong <keonpyo.kong@samsung.com>
Thu, 18 Apr 2013 11:49:51 +0000 (20:49 +0900)
committerkeonpyo.kong <keonpyo.kong@samsung.com>
Thu, 18 Apr 2013 11:49:51 +0000 (20:49 +0900)
Change-Id: I46941c41b08fa05fc2335efc2b21a196f535845c
Signed-off-by: keonpyo.kong <keonpyo.kong@samsung.com>
src/ui/FUi_Control.cpp

index fe12e70..114013c 100755 (executable)
@@ -887,11 +887,14 @@ _Control::OnVisibleStateChanged(void)
 void
 _Control::OnAncestorVisibleStateChanged(const _Control& control)
 {
-       _Control* pControl = GetFocused();
-       if (pControl == this)
+       if (IsVisible() == false)
        {
-               SetFocused(false);
-       }       
+               _Control* pControl = GetFocused();
+               if (pControl == this)
+               {
+                       SetFocused(false);
+               }
+       }
 }
 
 void