cedric pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=89a7e471d155dedb14f23dbb85e2178497620864

commit 89a7e471d155dedb14f23dbb85e2178497620864
Author: Jee-Yong Um <[email protected]>
Date:   Fri Mar 4 16:02:46 2016 -0800

    genlist: fix item sizing error
    
    Summary:
    Sometimes genlist expands its items' width over viewport,
    so horizontal scrollbar is shown unnecessarily.
    This will correct item sizing calculation.
    
    @fix
    
    Test Plan:
    elementary_test -to "genlist tree"
    elementary_test -to "fileselector"
    
    Reviewers: SanghyeonLee, cedric
    
    Differential Revision: https://phab.enlightenment.org/D3754
    
    Signed-off-by: Cedric BAIL <[email protected]>
---
 src/lib/elm_genlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index fd5e8aa..328b0af 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -874,7 +874,7 @@ _elm_genlist_elm_layout_sizing_eval(Eo *obj, 
Elm_Genlist_Data *sd)
 
    edje_object_size_min_calc(wd->resize_obj, &vmw, &vmh);
 
-   if (sd->mode == ELM_LIST_COMPRESS)
+   if ((sd->mode == ELM_LIST_SCROLL) || (sd->mode == ELM_LIST_COMPRESS))
      {
         Evas_Coord vw = 0, vh = 0;
 

-- 


Reply via email to