jaehwan pushed a commit to branch master.
commit 33e01102107bb7a4ae2934208912f3512fbc294e
Author: Jaehwan Kim <[email protected]>
Date: Tue Apr 23 17:01:25 2013 +0900
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.
---
ChangeLog | 5 +++++
NEWS | 1 +
src/lib/elm_widget.c | 12 +++++++++---
3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 68abc32..01233d3 100644
--- a/ChangeLog
+++ b/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/NEWS b/NEWS
index d76c982..a2e8bee 100644
--- a/NEWS
+++ b/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/src/lib/elm_widget.c b/src/lib/elm_widget.c
index 2686801..5ca6b99 100644
--- a/src/lib/elm_widget.c
+++ b/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
{
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr