From: Vitalii Vorobiov Date: Tue, 5 Jul 2016 12:04:02 +0000 (+0300) Subject: elc_combobox: add/remove item doesn't resize container with genlist X-Git-Tag: upstream/1.20.0~5357 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=497fc9ecabe9b964ade32543b652faed7fdd3851;p=platform%2Fupstream%2Fefl.git elc_combobox: add/remove item doesn't resize container with genlist recalculation of item count is getting only on a first load of combobox. whenever user add more items, size of container with items doesn't getting more place (provoking scroller to appear). but its event more annoying when user delete items, then there are lots of free spaces left that looks ridiculus @fix --- diff --git a/src/lib/elementary/elc_combobox.c b/src/lib/elementary/elc_combobox.c index c7f5ce0..7028deb 100644 --- a/src/lib/elementary/elc_combobox.c +++ b/src/lib/elementary/elc_combobox.c @@ -186,6 +186,8 @@ _activate(Evas_Object *obj) sd->expanded = EINA_TRUE; + count_items_genlist(obj); + if (sd->count <= 0) return; _table_resize(obj);