genlist : Fix item shrink 88/117188/4
authorjinwoo.shin <jw0227.shin@samsung.com>
Fri, 9 Dec 2016 09:26:02 +0000 (18:26 +0900)
committerSangHyeon Lee <sh10233.lee@samsung.com>
Wed, 5 Apr 2017 04:33:20 +0000 (13:33 +0900)
Item width is set as its block width.
But after item realize, item width is shrinked as item min width
and doesn't match with the block width.

@tizen_fix

Change-Id: I85c2f67ca3bbd72addb5c92bc60317fdb090b4de
Signed-off-by: jinwoo.shin <jw0227.shin@samsung.com>
src/lib/elm_genlist.c

index a44039a..3ce10af 100644 (file)
@@ -2004,6 +2004,9 @@ _item_realize(Elm_Gen_Item *it,
                     mw = sd->prev_viewport_w;
                   edje_object_message_signal_process(VIEW(it));
                   edje_object_size_min_restricted_calc(VIEW(it), &mw, &mh, mw, mh);
+                  // TIZEN_ONLY(161209): Fix item shrink
+                  if (sd->mode == ELM_LIST_COMPRESS) mw = sd->prev_viewport_w;
+                  //
                   it->item->w = it->item->minw = mw;
                   it->item->h = it->item->minh = mh;
                   it->item->mincalcd = EINA_TRUE;