seoz pushed a commit to branch master.
commit 0d1f4caaddb92c3ff2901400a62948a1995fab9c
Author: Thiep Ha <[email protected]>
Date: Fri Jul 5 02:58:16 2013 +0900
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.
---
src/lib/elm_list.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c
index cdd4307..52dc6d0 100644
--- a/src/lib/elm_list.c
+++ b/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);
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev