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>
This commit is contained in:
SangHyeon Lee 2016-05-24 14:11:07 +09:00
parent 4044fe6504
commit 89d886af48
1 changed files with 2 additions and 0 deletions

View File

@ -1910,6 +1910,8 @@ _item_realize(Elm_Gen_Item *it,
elm_coords_finger_size_adjust(1, &mw, 1, &mh);
if (sd->mode == ELM_LIST_COMPRESS)
mw = sd->prev_viewport_w;
// Process signal for proper size calc with text and content visible.
edje_object_message_signal_process(VIEW(it));
edje_object_size_min_restricted_calc(VIEW(it), &mw, &mh, mw, mh);
it->item->w = it->item->minw = mw;
it->item->h = it->item->minh = mh;