From: Jaehwan Kim <jae.hwan.kim@samsung.com>

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.




SVN revision: 62778
This commit is contained in:
Jaehwan Kim 2011-08-25 05:20:59 +00:00 committed by Carsten Haitzler
parent 1d2d656dbf
commit 621c8232b5
1 changed files with 1 additions and 0 deletions

View File

@ -3791,6 +3791,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));
}