raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=1574f59fd88c53b380ab83317106164ae1c84652

commit 1574f59fd88c53b380ab83317106164ae1c84652
Author: Jaeun Choi <jaeun12.c...@samsung.com>
Date:   Wed Jun 11 14:20:19 2014 +0900

    bug fix: _elm_widget_focus_region_show
    
    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 | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index 5f1e7ed..0263c25 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -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
           {

-- 


Reply via email to