Revert "genlist: recalc item size after item content field updated" 60/91160/2 submit/tizen/20161011.025405
authorSangHyeon Lee <sh10233.lee@samsung.com>
Thu, 6 Oct 2016 06:18:59 +0000 (15:18 +0900)
committerSangHyeon Lee <sh10233.lee@samsung.com>
Mon, 10 Oct 2016 04:56:28 +0000 (13:56 +0900)
This reverts commit 4df56c2ce9b54596c49d4d12a4d5d692a1e9a384.

Change-Id: I411a94aba0dd08d4008317479e351ee2f4e01263
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
src/lib/elm_genlist.c

index 21bff10..dfec892 100644 (file)
@@ -7050,9 +7050,8 @@ _elm_genlist_item_fields_update(Eo *eo_item EINA_UNUSED, Elm_Gen_Item *it,
                                    &GL_IT(it)->deco_all_contents,
                                    "contents", parts);
           }
-        //forcely recalc about item because even same content, size can be changed.
-        it->item->mincalcd = EINA_FALSE;
-        it->item->block->must_recalc = EINA_TRUE;
+        if (it->has_contents != (!!it->contents))
+          it->item->mincalcd = EINA_FALSE;
         it->has_contents = !!it->contents;
         if (it->item->type == ELM_GENLIST_ITEM_NONE)
           {
@@ -7069,10 +7068,7 @@ _elm_genlist_item_fields_update(Eo *eo_item EINA_UNUSED, Elm_Gen_Item *it,
      _item_state_realize(it, VIEW(it), parts);
 
    if (!it->item->mincalcd)
-     {
-        ELM_SAFE_FREE(it->item->wsd->calc_job, ecore_job_del);
-        it->item->wsd->calc_job = ecore_job_add(_calc_job, it->item->wsd->obj);
-     }
+     elm_genlist_item_update(eo_item);
 }
 
 EOLIAN static void