From: raster Date: Thu, 25 Aug 2011 05:20:59 +0000 (+0000) Subject: [Genlist] Applied Upstream patch r62778. X-Git-Tag: REL_F_I9200_20110906_1~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=05564bbf1b18c84fc5f7ab18ba536de1e578db88;p=framework%2Fuifw%2Felementary.git [Genlist] Applied Upstream patch r62778. From: Jaehwan Kim Subject: [E-devel] [Patch] elm_genlist_clear When items are added right after genlist clear, genlist is scrolled to the previous position. If all item is deleted, the scroller have to locate 0, 0. But scroller has wanted position to remembers the scrolled location. So even if all item is deleted, it locate previous position. Then I added elm_smart_scroller_child_region_show(wd->scr, 0, 0, 0, 0) at the end of the elm_genlist_clear. git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@62778 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index c10114b..cc899ef 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -3824,6 +3824,7 @@ elm_genlist_clear(Evas_Object *obj) evas_object_smart_callback_call(wd->pan_smart, "changed", NULL); } _sizing_eval(obj); + elm_smart_scroller_child_region_show(wd->scr, 0, 0, 0, 0); evas_event_thaw(evas_object_evas_get(wd->obj)); evas_event_thaw_eval(evas_object_evas_get(wd->obj)); }