summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elementary/elm_interface_scrollable.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/elementary/elm_interface_scrollable.c b/src/lib/elementary/elm_interface_scrollable.c
index cd65b29..152de5f 100644
--- a/src/lib/elementary/elm_interface_scrollable.c
+++ b/src/lib/elementary/elm_interface_scrollable.c
@@ -4727,17 +4727,16 @@ EOLIAN static void
4727_elm_interface_scrollable_efl_ui_focus_manager_focus_set(Eo *obj, Elm_Scrollable_Smart_Interface_Data *pd EINA_UNUSED, Efl_Ui_Focus_Object *focus) 4727_elm_interface_scrollable_efl_ui_focus_manager_focus_set(Eo *obj, Elm_Scrollable_Smart_Interface_Data *pd EINA_UNUSED, Efl_Ui_Focus_Object *focus)
4728{ 4728{
4729 Eina_Rectangle geom; 4729 Eina_Rectangle geom;
4730 Eina_Rectangle obj_geom; 4730 int pan_x, pan_y;
4731 4731
4732 efl_ui_focus_manager_focus_set(efl_super(obj, MY_SCROLLABLE_INTERFACE), focus); 4732 efl_ui_focus_manager_focus_set(efl_super(obj, MY_SCROLLABLE_INTERFACE), focus);
4733 4733
4734 if (!focus) return; 4734 if (!focus) return;
4735 4735
4736 evas_object_geometry_get(focus, &geom.x, &geom.y, &geom.w, &geom.h); 4736 evas_object_geometry_get(focus, &geom.x, &geom.y, &geom.w, &geom.h);
4737 evas_object_geometry_get(pd->content, &obj_geom.x, &obj_geom.y, &obj_geom.w, &obj_geom.h); 4737 elm_obj_pan_pos_get(pd->pan_obj, &pan_x, &pan_y);
4738 4738 geom.x = geom.x + pan_x;
4739 geom.x = geom.x - obj_geom.x; 4739 geom.y = geom.y + pan_y;
4740 geom.y = geom.y - obj_geom.y;
4741 4740
4742 elm_interface_scrollable_region_bring_in(obj, geom.x, geom.y, geom.w, geom.h); 4741 elm_interface_scrollable_region_bring_in(obj, geom.x, geom.y, geom.w, geom.h);
4743} 4742}