summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUmesh Tanwar <umesh.tanwar@samsung.com>2017-03-26 20:16:13 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2017-03-26 20:26:15 +0530
commitdd627324f9f7e1a1d92a0439c8e309f9907a26f3 (patch)
treeaae8684c795758f914ba90da6447eb2c0094fca7
parent02b6ee3ed87ec4ff7525836ff8818f0f7e555ac2 (diff)
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>
-rw-r--r--src/lib/elementary/elm_gengrid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_gengrid.c b/src/lib/elementary/elm_gengrid.c
index 6501025cc4..3acfa4d00c 100644
--- a/src/lib/elementary/elm_gengrid.c
+++ b/src/lib/elementary/elm_gengrid.c
@@ -3223,6 +3223,7 @@ _swap_items(Elm_Object_Item *eo_it1, Elm_Object_Item *eo_it2, Elm_Focus_Directio
3223 evas_object_raise(VIEW(it1)); 3223 evas_object_raise(VIEW(it1));
3224 efl_event_callback_legacy_call 3224 efl_event_callback_legacy_call
3225 (sd->obj, ELM_GENGRID_EVENT_ITEM_REORDER_ANIM_START, EO_OBJ(sd->reorder.it1)); 3225 (sd->obj, ELM_GENGRID_EVENT_ITEM_REORDER_ANIM_START, EO_OBJ(sd->reorder.it1));
3226 elm_gengrid_item_bring_in(eo_it2, ELM_GENGRID_ITEM_SCROLLTO_IN);
3226 //TODO: Add elm config for time 3227 //TODO: Add elm config for time
3227 ecore_animator_timeline_add(0.3, _item_move_cb, sd); 3228 ecore_animator_timeline_add(0.3, _item_move_cb, sd);
3228} 3229}