diff options
author | Daniel Juyung Seo <seojuyung2@gmail.com> | 2014-05-01 22:27:02 +0900 |
---|---|---|
committer | Daniel Juyung Seo <seojuyung2@gmail.com> | 2014-05-01 22:27:05 +0900 |
commit | a8e214eac1b657e8d22626eaaed149c7cbfb96ee (patch) | |
tree | ffe0a0694b5e19a9574e6534707d8fcbd558e50f | |
parent | 50912bf5534f1e6905dc5a6c0ac08f4f607eecd5 (diff) | |
download | elementary-a8e214eac1b657e8d22626eaaed149c7cbfb96ee.tar.gz |
focus: Fixed focus_region_show to consider bring_in_enable configuration.
focus_auto_scroll_bring_in_enable feature is new in 1.10, this would
not be backported.
-rw-r--r-- | src/lib/elm_widget.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index b6d22378b..b5d53362e 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -645,7 +645,10 @@ _elm_widget_focus_region_show(Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUSED) if (_elm_scrollable_is(o) && !elm_widget_disabled_get(o)) { - eo_do(o, elm_interface_scrollable_content_region_show(x, y, w, h)); + if (!_elm_config->focus_auto_scroll_bring_in_enable) + eo_do(o, elm_interface_scrollable_content_region_show(x, y, w, h)); + else + eo_do(o, elm_interface_scrollable_region_bring_in(x, y, w, h)); if (!elm_widget_focus_region_get(o, &x, &y, &w, &h)) { |