bug fix: _elm_widget_focus_region_show
authorJaeun Choi <jaeun12.choi@samsung.com>
Wed, 11 Jun 2014 05:20:19 +0000 (14:20 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 11 Jun 2014 06:29:31 +0000 (15:29 +0900)
Summary: should do scrollable_content_set according to focus_region_get

Test Plan: None

Reviewers: woohyun

Differential Revision: https://phab.enlightenment.org/D981

src/lib/elm_widget.c

index 5f1e7ed..0263c25 100644 (file)
@@ -645,6 +645,12 @@ _elm_widget_focus_region_show(Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUSED)
 
         if (_elm_scrollable_is(o) && !elm_widget_disabled_get(o))
           {
+             if (!elm_widget_focus_region_get(o, &x, &y, &w, &h))
+               {
+                  o = elm_widget_parent_get(o);
+                  continue;
+               }
+
              switch (_elm_config->focus_autoscroll_mode)
                {
                 case ELM_FOCUS_AUTOSCROLL_MODE_SHOW:
@@ -656,13 +662,6 @@ _elm_widget_focus_region_show(Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUSED)
                 default:
                    break;
                }
-
-
-             if (!elm_widget_focus_region_get(o, &x, &y, &w, &h))
-               {
-                  o = elm_widget_parent_get(o);
-                  continue;
-               }
           }
         else
           {