list/genlist/gengrid: Call item_show not bring_in on focus.
Elm 1.9 does item_show not bring_in so let's keep the consistency. I will make this optional later.
This commit is contained in:
parent
1d14a57a8b
commit
65c948ca93
|
@ -1515,7 +1515,7 @@ _elm_gengrid_item_focused(Elm_Gen_Item *it)
|
|||
(elm_widget_item_disabled_get(it)))
|
||||
return;
|
||||
|
||||
elm_gengrid_item_bring_in
|
||||
elm_gengrid_item_show
|
||||
((Elm_Object_Item *)it, ELM_GENGRID_ITEM_SCROLLTO_IN);
|
||||
sd->focused_item = (Elm_Object_Item *)it;
|
||||
|
||||
|
|
|
@ -2448,8 +2448,7 @@ _elm_genlist_item_focused(Elm_Gen_Item *it)
|
|||
(elm_widget_item_disabled_get(it)))
|
||||
return;
|
||||
|
||||
elm_genlist_item_bring_in((Elm_Object_Item *)it,
|
||||
ELM_GENLIST_ITEM_SCROLLTO_IN);
|
||||
elm_genlist_item_show((Elm_Object_Item *)it, ELM_GENLIST_ITEM_SCROLLTO_IN);
|
||||
sd->focused_item = (Elm_Object_Item *)it;
|
||||
|
||||
if (elm_widget_focus_highlight_enabled_get(obj))
|
||||
|
|
|
@ -1016,7 +1016,7 @@ _elm_list_item_focused(Elm_List_Item *it)
|
|||
evas_object_geometry_get(VIEW(it), &x, &y, &w, &h);
|
||||
evas_object_geometry_get(sd->hit_rect, &sx, &sy, &sw, &sh);
|
||||
if ((x < sx) || (y < sy)|| ((x + w) > (sx + sw)) || ((y + h) > (sy + sh)))
|
||||
elm_list_item_bring_in((Elm_Object_Item *)it);
|
||||
elm_list_item_show((Elm_Object_Item *)it);
|
||||
sd->focused_item = (Elm_Object_Item *)it;
|
||||
if (elm_widget_focus_highlight_enabled_get(WIDGET(it)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue