From 1bab0cb0d0aa6f03e0b94169e80b85fc17f4f55e Mon Sep 17 00:00:00 2001 From: Jaehwan Kim Date: Tue, 23 Apr 2013 17:04:36 +0900 Subject: [PATCH] [Scroller] Fix the scrolled entry in scroller is located wrong position when the cursor is changed. Change-Id: If0279cd037e427fce935b07fdd4eb5482fe5764e --- src/lib/elm_widget.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c index 22bf422..5a0aa5a 100644 --- a/src/lib/elm_widget.c +++ b/src/lib/elm_widget.c @@ -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; -- 2.7.4