summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangHyeon Lee <sh10233.lee@samsung.com>2016-05-24 14:11:07 +0900
committerSangHyeon Lee <sh10233.lee@samsung.com>2016-05-24 14:14:24 +0900
commit89d886af485c3e71723f22485635f4af18e69761 (patch)
tree30e23cb978e0579b125f51573e0e36435b9d7fc6
parent4044fe650469d6b5910b62692236487630d8db9a (diff)
genlist: process message before restricted calc for get proper size of text and content visibled
Summary: genlist text_get and content_get send signal for visibled or re-arrange it's part on edc. this singal may need to be processed before calculating item edc for proper result. we cannot call one only one time in realized function, because, size must calculated before the realized callback, and user can send customized signal in their realized callback which also need to be processed. Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
-rw-r--r--src/lib/elementary/elm_genlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index db67e9df7b..e48a5f0186 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -1910,6 +1910,8 @@ _item_realize(Elm_Gen_Item *it,
1910 elm_coords_finger_size_adjust(1, &mw, 1, &mh); 1910 elm_coords_finger_size_adjust(1, &mw, 1, &mh);
1911 if (sd->mode == ELM_LIST_COMPRESS) 1911 if (sd->mode == ELM_LIST_COMPRESS)
1912 mw = sd->prev_viewport_w; 1912 mw = sd->prev_viewport_w;
1913 // Process signal for proper size calc with text and content visible.
1914 edje_object_message_signal_process(VIEW(it));
1913 edje_object_size_min_restricted_calc(VIEW(it), &mw, &mh, mw, mh); 1915 edje_object_size_min_restricted_calc(VIEW(it), &mw, &mh, mw, mh);
1914 it->item->w = it->item->minw = mw; 1916 it->item->w = it->item->minw = mw;
1915 it->item->h = it->item->minh = mh; 1917 it->item->h = it->item->minh = mh;