From 791fc27c4072a79b063f3c083b1acbbc0c275c58 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 17 Aug 2018 11:11:08 -0400 Subject: [PATCH] elm/list: correctly handle ELM_LIST_COMPRESS according to the docs, this mode means that no content size hints should be taken into account when calculating size hints for the overall object fix T7313 Differential Revision: https://phab.enlightenment.org/D6860 --- src/lib/elementary/elm_list.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/elementary/elm_list.c b/src/lib/elementary/elm_list.c index a34425b02b..d72909c7dd 100644 --- a/src/lib/elementary/elm_list.c +++ b/src/lib/elementary/elm_list.c @@ -778,6 +778,11 @@ _elm_list_mode_set_internal(Evas_Object *obj) sd->scr_minw = EINA_TRUE; sd->scr_minh = EINA_TRUE; } + else if (sd->mode == ELM_LIST_COMPRESS) + { + sd->scr_minw = EINA_FALSE; + sd->scr_minh = EINA_FALSE; + } elm_layout_sizing_eval(obj); }