genlist : fix cannot scroll to item after call elm_genlist_item_update
authorjinwoo.shin <jw0227.shin@samsung.com>
Wed, 7 Dec 2016 04:57:56 +0000 (13:57 +0900)
committerHermet Park <hermet@hermet.pe.kr>
Wed, 7 Dec 2016 04:57:56 +0000 (13:57 +0900)
Summary: Fix cannot scroll to item after call elm_genlist_item_update

Test Plan: https://phab.enlightenment.org/T4974

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: SanghyeonLee, minkyu, cedric, jpeg

Tags: #efl

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

src/lib/elementary/elm_genlist.c

index ba727ed..7e7a30c 100644 (file)
@@ -6979,10 +6979,15 @@ _elm_genlist_item_coordinates_calc(Elm_Gen_Item *it,
      {
         if ((it->item->queued) || (!it->item->mincalcd) || (sd->queue))
           {
+             sd->check_scroll = EINA_TRUE;
              sd->show_item = it;
              sd->bring_in = bring_in;
              sd->scroll_to_type = type;
              it->item->show_me = EINA_TRUE;
+
+             ecore_job_del(sd->calc_job);
+             sd->calc_job = ecore_job_add(_calc_job, sd->obj);
+
              return EINA_FALSE;
           }
      }