From 7686648e121f70629df550678bf53b74b4a7ab74 Mon Sep 17 00:00:00 2001 From: Thiep Ha Date: Fri, 5 Jul 2013 02:58:16 +0900 Subject: [PATCH] Fix horizontal list size issue in desktop mode (T179) Issue: horizontal list does not show correctly in desktop mode. - The way to reproduce isssue is discribled in Task T179. - We can also reproduce issue by runnin Ctxpopup at horizontal mode in elmentary test with standard profile. --- legacy/elementary/src/lib/elm_list.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/legacy/elementary/src/lib/elm_list.c b/legacy/elementary/src/lib/elm_list.c index cdd4307524..52dc6d0a72 100644 --- a/legacy/elementary/src/lib/elm_list.c +++ b/legacy/elementary/src/lib/elm_list.c @@ -742,6 +742,7 @@ _items_fix(Evas_Object *obj) // this may call up user and it may modify the list item // but we're safe as we're flagged as walking. // just don't process further + Evas_Coord ew, eh; edje_object_message_signal_process(VIEW(it)); if (it->deleted) continue; @@ -750,6 +751,10 @@ _items_fix(Evas_Object *obj) elm_coords_finger_size_adjust(1, &mw, 1, &mh); edje_object_size_min_restricted_calc (VIEW(it), &mw, &mh, mw, mh); + edje_object_parts_extends_calc + (VIEW(it), NULL, NULL, &ew, &eh); + mw = mw > ew ? mw : ew; + mh = mh > eh ? mh : eh; if (!it->is_separator) elm_coords_finger_size_adjust(1, &mw, 1, &mh); evas_object_size_hint_min_set(VIEW(it), mw, mh);