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.
This commit is contained in:
Jaehwan Kim 2013-04-23 17:01:25 +09:00
parent 3e981041c6
commit 9ad338cdfa
3 changed files with 15 additions and 3 deletions

View File

@ -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.

View File

@ -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:

View File

@ -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
{