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.
This commit is contained in:
Thiep Ha 2013-07-05 02:58:16 +09:00 committed by Daniel Juyung Seo
parent 76719a836b
commit 7686648e12
1 changed files with 5 additions and 0 deletions

View File

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