summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elementary/efl_ui_widget.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_widget.c b/src/lib/elementary/efl_ui_widget.c
index 370bf4e045..010c9fa9b6 100644
--- a/src/lib/elementary/efl_ui_widget.c
+++ b/src/lib/elementary/efl_ui_widget.c
@@ -1128,12 +1128,15 @@ elm_widget_focus_region_show(Eo *obj)
if (_elm_scrollable_is(o) && !elm_widget_disabled_get(o))
{
Evas_Coord sx, sy;
+ Evas_Coord vx, vy;
+
elm_interface_scrollable_content_region_get(o, &sx, &sy, NULL, NULL);
+ elm_interface_scrollable_content_viewport_geometry_get(o, &vx, &vy, NULL, NULL);
- // Get the object's on_focus_region position relative to the scroller.
+ // Get the object's on_focus_region position relative to the pan in the scroller.
Evas_Coord rx, ry;
- rx = ox + r.x - px + sx;
- ry = oy + r.y - py + sy;
+ rx = ox + r.x - vx + sx;
+ ry = oy + r.y - vy + sy;
switch (_elm_config->focus_autoscroll_mode)
{