forked from enlightenment/efl
elm_index: Skip box auto fill when index size is invalid.
Summary: _index_box_auto_fill will be called when user calling elm_index_level_go(), elm_index_omit_enabled_set(). item size re-calculated and each item style reset even index size is invalid. It can make performance issue during index creation time. Test Plan: elementary_test index sample Reviewers: taxi2se, jpeg, cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4653
This commit is contained in:
parent
0a2d8d834a
commit
a503296f73
|
@ -231,6 +231,8 @@ _index_box_auto_fill(Evas_Object *obj,
|
|||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||
evas_object_geometry_get(wd->resize_obj, NULL, NULL, &iw, &ih);
|
||||
|
||||
if ((sd->omit_enabled) && (ih <= 0)) return;
|
||||
|
||||
rtl = elm_widget_mirrored_get(obj);
|
||||
|
||||
EINA_LIST_FREE(sd->omit, om)
|
||||
|
|
Loading…
Reference in New Issue