summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2016-03-04 16:02:46 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-03-04 16:14:37 -0800
commit89a7e471d155dedb14f23dbb85e2178497620864 (patch)
tree04cff270ca2c21773c7b92517b69754607d4f41e
parentf7f362d0417f3cea2f24b20d2a5474e1343136a6 (diff)
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 <cedric@osg.samsung.com>
-rw-r--r--src/lib/elm_genlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index fd5e8aaf2..328b0af4e 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)
874 874
875 edje_object_size_min_calc(wd->resize_obj, &vmw, &vmh); 875 edje_object_size_min_calc(wd->resize_obj, &vmw, &vmh);
876 876
877 if (sd->mode == ELM_LIST_COMPRESS) 877 if ((sd->mode == ELM_LIST_SCROLL) || (sd->mode == ELM_LIST_COMPRESS))
878 { 878 {
879 Evas_Coord vw = 0, vh = 0; 879 Evas_Coord vw = 0, vh = 0;
880 880