forked from enlightenment/efl
index: fix index object got a wrong min value.
Summary: The evas box swallowed in "elm,swallow,index" part. Then the each index item will be appended into evas_box when elm_index_go called. If user make the line or dot for that swallow part for resize same as internall box. edje_size_min_calc always give the '0'value for it. Box will be swallowed the only on swllow part for desicion index layout size. So the index min value should follow the box size. Test Plan: Run any index sample. Get the index min size and check the value. It gets always wrong before. Reviewers: cedric, Hermet, woohyun Differential Revision: https://phab.enlightenment.org/D2896 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
79242eb4cc
commit
c54f765ec9
|
@ -506,9 +506,9 @@ EOLIAN static void
|
|||
_elm_index_elm_layout_sizing_eval(Eo *obj, Elm_Index_Data *_pd EINA_UNUSED)
|
||||
{
|
||||
Evas_Coord minw = -1, minh = -1;
|
||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||
ELM_INDEX_DATA_GET(obj, sd);
|
||||
|
||||
edje_object_size_min_calc(wd->resize_obj, &minw, &minh);
|
||||
evas_object_size_hint_min_get(sd->bx[sd->level], &minw, &minh);
|
||||
evas_object_size_hint_min_set(obj, minw, minh);
|
||||
evas_object_size_hint_max_set(obj, -1, -1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue