hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7901d145c51aa43727672e4a1742aab807099675

commit 7901d145c51aa43727672e4a1742aab807099675
Author: SangHyeon Jade Lee <[email protected]>
Date:   Wed Sep 19 09:34:43 2018 +0900

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

-- 


Reply via email to