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
This commit is contained in:
Jaeun Choi 2014-06-11 14:20:19 +09:00 committed by Carsten Haitzler (Rasterman)
parent 2ffb942d5a
commit 636bb88170
1 changed files with 6 additions and 7 deletions

View 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
{