genlist: update height of the first item when scroll align is enabled
authorJee-Yong Um <jc9.um@samsung.com>
Fri, 9 Dec 2016 08:24:46 +0000 (17:24 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 05:37:07 +0000 (14:37 +0900)
Signed-Off-By: Jee-Yong Um <jc9.um@samsung.com>
Change-Id: I510bb479a099a0fdcc65d105e899aade1b689eef

src/mobile_lib/elm_genlist.c

index 5bde002..25f41aa 100644 (file)
@@ -734,13 +734,14 @@ _elm_genlist_pan_evas_object_smart_resize(Eo *obj, Elm_Genlist_Pan_Data *psd, Ev
        psd->wsd->prev_viewport_w != w)
      {
         Item_Block *itb;
+        ELM_WIDGET_DATA_GET_OR_RETURN(psd->wsd->obj, wd);
         EINA_INLIST_FOREACH(psd->wsd->blocks, itb)
           {
              Eina_List *l;
              Elm_Gen_Item *it;
              EINA_LIST_FOREACH(itb->items, l, it)
                {
-                  if (!GL_IT(it)->multiline) continue;
+                  if (!wd->scroll_item_align_enable && !GL_IT(it)->multiline) continue;
                   if (GL_IT(it)->wsd->realization_mode)
                     {
                        GL_IT(it)->calc_done = EINA_FALSE;