forked from enlightenment/efl
Gengrid: Bring the item into view scope before swapping.
Summary: The gengrid item should be into view scope while reordering the items. @fix Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com> Test Plan: elmementary_test -> gengrid 2 -> horizontal mode + reordering Reviewers: singh.amitesh, cedric Subscribers: cedric, atulfokk, jpeg Differential Revision: https://phab.enlightenment.org/D4740 Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
This commit is contained in:
parent
02b6ee3ed8
commit
dd627324f9
|
@ -3223,6 +3223,7 @@ _swap_items(Elm_Object_Item *eo_it1, Elm_Object_Item *eo_it2, Elm_Focus_Directio
|
|||
evas_object_raise(VIEW(it1));
|
||||
efl_event_callback_legacy_call
|
||||
(sd->obj, ELM_GENGRID_EVENT_ITEM_REORDER_ANIM_START, EO_OBJ(sd->reorder.it1));
|
||||
elm_gengrid_item_bring_in(eo_it2, ELM_GENGRID_ITEM_SCROLLTO_IN);
|
||||
//TODO: Add elm config for time
|
||||
ecore_animator_timeline_add(0.3, _item_move_cb, sd);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue