[Scroller] Fix the scrolled entry in scroller is located wrong position when the...
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Tue, 23 Apr 2013 08:04:36 +0000 (17:04 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 04:23:05 +0000 (13:23 +0900)
Change-Id: If0279cd037e427fce935b07fdd4eb5482fe5764e

src/lib/elm_widget.c

index 22bf422..5a0aa5a 100644 (file)
@@ -2969,7 +2969,7 @@ elm_widget_show_region_set(Evas_Object *obj,
                            Eina_Bool forceshow)
 {
    Evas_Object *parent_obj, *child_obj;
-   Evas_Coord px, py, cx, cy;
+   Evas_Coord px, py, cx, cy, nx, ny;
 
    API_ENTRY return;
 
@@ -2984,9 +2984,19 @@ elm_widget_show_region_set(Evas_Object *obj,
    sd->rw = w;
    sd->rh = h;
    if (sd->on_show_region)
+   {
      sd->on_show_region
        (sd->on_show_region_data, obj);
 
+     if (_elm_scrollable_is(obj))
+       {
+          ELM_SCROLLABLE_IFACE_GET(obj, s_iface);
+          s_iface->content_pos_get(obj, &nx, &ny);
+          x -= nx;
+          y -= ny;
+       }
+   }
+
    do
      {
         parent_obj = sd->parent_obj;