From 072ff46aa2db19133fa4d6951688bbaf0e78a96f Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Wed, 1 Jan 2020 23:16:25 +0000 Subject: [PATCH] elm_code_widget: Fix cursor position sync. The scroller was causing the cursor to be out of sync with the widget content. This fixes that. --- src/lib/elementary/elm_code_widget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c index d18f6126a2..8a054fae35 100644 --- a/src/lib/elementary/elm_code_widget.c +++ b/src/lib/elementary/elm_code_widget.c @@ -800,6 +800,7 @@ _elm_code_widget_geometry_for_position_get(Elm_Code_Widget *widget, Elm_Code_Wid gutter = efl_ui_code_widget_text_left_gutter_width_get(widget); grid = eina_list_nth(pd->grids, row - 1); + evas_object_smart_calculate(pd->scroller); evas_object_smart_calculate(pd->gridbox); evas_object_geometry_get(grid, x, y, NULL, NULL);