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:
Woochan Lee 2017-02-13 20:21:52 +09:00 committed by Jean-Philippe Andre
parent 0a2d8d834a
commit a503296f73
1 changed files with 2 additions and 0 deletions

View File

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