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
This commit is contained in:
SangHyeon Jade Lee 2018-09-19 09:34:43 +09:00 committed by Hermet Park
parent 82060c5798
commit 7901d145c5
1 changed files with 4 additions and 0 deletions

View File

@ -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) &&