forked from enlightenment/efl
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:
parent
2ffb942d5a
commit
636bb88170
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue