From d0f48312c233c7aeacad261ad7c03586ef3fae3f Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 24 Jul 2018 11:05:13 -0400 Subject: [PATCH] elm/list: remove max size setting on item contents Summary: this was added in a giant block commit in 2009 without direct explanation; it doesn't seem to make functional sense in the original patch and it definitely doesn't make sense now this greatly improves list performance by causing fewer edje recalcs on list items resulting from list fighting with item content objects over max size hint fix T7176 Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric, #committers Tags: #efl_widgets Maniphest Tasks: T7176 Differential Revision: https://phab.enlightenment.org/D6669 --- src/lib/elementary/elm_list.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/elementary/elm_list.c b/src/lib/elementary/elm_list.c index 269adb5cdb..fd47d66bcf 100644 --- a/src/lib/elementary/elm_list.c +++ b/src/lib/elementary/elm_list.c @@ -1019,14 +1019,12 @@ _items_fix(Evas_Object *obj) if (it->icon) { evas_object_size_hint_min_set(it->icon, minw[0], minh[0]); - evas_object_size_hint_max_set(it->icon, 99999, 99999); edje_object_part_swallow (VIEW(it), "elm.swallow.icon", it->icon); } if (it->end) { evas_object_size_hint_min_set(it->end, minw[1], minh[1]); - evas_object_size_hint_max_set(it->end, 99999, 99999); edje_object_part_swallow (VIEW(it), "elm.swallow.end", it->end); }