From 636bb88170569c00ccadc0eddde9db162eed40fd Mon Sep 17 00:00:00 2001 From: Jaeun Choi Date: Wed, 11 Jun 2014 14:20:19 +0900 Subject: [PATCH] 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 --- legacy/elementary/src/lib/elm_widget.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/legacy/elementary/src/lib/elm_widget.c b/legacy/elementary/src/lib/elm_widget.c index 5f1e7ed..0263c25 100644 --- a/legacy/elementary/src/lib/elm_widget.c +++ b/legacy/elementary/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 { -- 2.7.4