summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorWoochan Lee <wc0917.lee@samsung.com>2017-02-13 20:21:52 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-02-13 20:21:52 +0900
commita503296f7308bef909818c39f954ca6860922012 (patch)
tree6c3297b09941ef34c248211936b514e706bd110e /src/lib/elementary
parent0a2d8d834ab3b7f0a01b4905250087526435bdbe (diff)
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
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/elm_index.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_index.c b/src/lib/elementary/elm_index.c
index c1b0e056f2..3b60f4452a 100644
--- a/src/lib/elementary/elm_index.c
+++ b/src/lib/elementary/elm_index.c
@@ -231,6 +231,8 @@ _index_box_auto_fill(Evas_Object *obj,
231 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 231 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
232 evas_object_geometry_get(wd->resize_obj, NULL, NULL, &iw, &ih); 232 evas_object_geometry_get(wd->resize_obj, NULL, NULL, &iw, &ih);
233 233
234 if ((sd->omit_enabled) && (ih <= 0)) return;
235
234 rtl = elm_widget_mirrored_get(obj); 236 rtl = elm_widget_mirrored_get(obj);
235 237
236 EINA_LIST_FREE(sd->omit, om) 238 EINA_LIST_FREE(sd->omit, om)