From 7901d145c51aa43727672e4a1742aab807099675 Mon Sep 17 00:00:00 2001 From: SangHyeon Jade Lee Date: Wed, 19 Sep 2018 09:34:43 +0900 Subject: [PATCH] genlist : missing scrollto_bottom condition in item_scroll is fixed. Summary: ELM_GENLIST_ITEM_SCROLLTO_BOTTOM condition is considered in coordinate_calc, but not considered in item_scroll which calls deferred for item calculation. so put the proper condition for ELM_GENLIST_ITEM_SCROLLTO_BOTTOM in item scroll. Test Plan: elementary_test Reviewers: Hermet, eagleeye Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7035 --- src/lib/elementary/elm_genlist.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c index c44b830171..974cf7ea93 100644 --- a/src/lib/elementary/elm_genlist.c +++ b/src/lib/elementary/elm_genlist.c @@ -651,6 +651,10 @@ _item_scroll(Elm_Genlist_Data *sd) dy += ((it->item->h / 2) - (oh / 2)); break; + case ELM_GENLIST_ITEM_SCROLLTO_BOTTOM: + dy += (it->item->h - oh); + break; + case ELM_GENLIST_ITEM_SCROLLTO_IN: default: if ((sd->expanded_item) &&