genlist: fix resize of items when added after elm_genlist_clear().
authorAmitesh Singh <amitesh.sh@samsung.com>
Mon, 22 Jun 2015 10:06:21 +0000 (19:06 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 22 Jun 2015 10:06:21 +0000 (19:06 +0900)
Summary:
This fixes following issue.

1. Add genlist items
2. Clear genlist by elm_genlist_clear()
3. Append items.
   Genlist items are shrinked. This patch fixes that issue.

@fix
Partially resolves: T2367

Reviewers: Hermet, raster, cedric, raoulh, SanghyeonLee

Subscribers: sachin.dev, seoz

Differential Revision: https://phab.enlightenment.org/D2733

src/lib/elm_genlist.c

index 50a3ffc..a4936b0 100644 (file)
@@ -4425,9 +4425,8 @@ _item_process_post(Elm_Genlist_Data *sd,
         it->item->block->changed = 0;
         if (sd->pan_changed)
           {
+             evas_object_smart_changed(sd->pan_obj);
              ELM_SAFE_FREE(sd->calc_job, ecore_job_del);
-             _calc_job(sd->obj);
-             sd->pan_changed = EINA_FALSE;
           }
      }
    if (show_me) it->item->block->show_me = EINA_TRUE;