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
This commit is contained in:
Mike Blumenkrantz 2018-08-17 11:11:08 -04:00 committed by Stefan Schmidt
parent 0f21b1f7aa
commit 791fc27c40
1 changed files with 5 additions and 0 deletions

View File

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