diff --git a/legacy/elementary/ChangeLog b/legacy/elementary/ChangeLog index 68abc32d19..01233d33b2 100644 --- a/legacy/elementary/ChangeLog +++ b/legacy/elementary/ChangeLog @@ -1276,3 +1276,8 @@ 2013-04-23 ChunEon Park * Added elm_object_domain_part_text_translatable_set(). + +2013-04-23 Jaehwan Kim + + * Fix the scrolled entry in scroller is located wrong position when the cursor is changed. + It is a scroller in scroller. In this case, it moved twice. diff --git a/legacy/elementary/NEWS b/legacy/elementary/NEWS index d76c982300..a2e8bee1b0 100644 --- a/legacy/elementary/NEWS +++ b/legacy/elementary/NEWS @@ -213,6 +213,7 @@ Fixes: * Fix the policy is not changed when the theme is changed. * When entry is disabled, scrolling is also disabled. * Make access object unfocusable when Aaccessibility is disabled. + * Fix the scrolled entry in scroller is located wrong position when the cursor is changed. Removals: diff --git a/legacy/elementary/src/lib/elm_widget.c b/legacy/elementary/src/lib/elm_widget.c index 2686801de0..5ca6b99036 100644 --- a/legacy/elementary/src/lib/elm_widget.c +++ b/legacy/elementary/src/lib/elm_widget.c @@ -3320,7 +3320,7 @@ _elm_widget_show_region_set(Eo *obj, void *_pd, va_list *list) Eina_Bool forceshow = va_arg(*list, int); Evas_Object *parent_obj, *child_obj; - Evas_Coord px, py, cx, cy; + Evas_Coord px, py, cx, cy, nx, ny; Elm_Widget_Smart_Data *sd = _pd; @@ -3334,8 +3334,14 @@ _elm_widget_show_region_set(Eo *obj, void *_pd, va_list *list) sd->rw = w; sd->rh = h; if (sd->on_show_region) - sd->on_show_region - (sd->on_show_region_data, obj); + { + sd->on_show_region + (sd->on_show_region_data, obj); + + eo_do(obj, elm_scrollable_interface_content_pos_get(&nx, &ny)); + x -= nx; + y -= ny; + } do {