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>
This commit is contained in:
Jee-Yong Um 2016-03-04 16:02:46 -08:00 committed by Cedric BAIL
parent 2222590f1d
commit 612949cc90
1 changed files with 1 additions and 1 deletions

View File

@ -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;