genlist: add current x position for item bring in/show. 05/114905/2
authorHosang Kim <hosang12.kim@samsung.com>
Wed, 15 Feb 2017 11:59:04 +0000 (20:59 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 21 Feb 2017 03:16:50 +0000 (19:16 -0800)
Sometimes genlist's x position is not zero.
But genlist does not consider it.

Change-Id: I7277c077479044244e2c8849c6d670efe75b0c0f
(cherry picked from commit b96ceedbb9ecabbcf04b73b08a6184e33801874c)

src/mobile_lib/elm_genlist.c

index 8b36b18..425bc07 100644 (file)
@@ -2643,7 +2643,7 @@ _elm_genlist_pan_evas_object_smart_calculate(Eo *obj, Elm_Genlist_Pan_Data *psd)
         Evas_Coord x, y, w, h;
         Elm_Gen_Item *it = psd->wsd->show_item;
         psd->wsd->show_item = NULL;
-        x = it->x + GL_IT(it)->block->x;
+        x = it->x + GL_IT(it)->block->x + psd->wsd->pan_x;
         y = it->y + GL_IT(it)->block->y;
         w = ow;
         h = oh;