netstar pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=072ff46aa2db19133fa4d6951688bbaf0e78a96f

commit 072ff46aa2db19133fa4d6951688bbaf0e78a96f
Author: Alastair Poole <[email protected]>
Date:   Wed Jan 1 23:16:25 2020 +0000

    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);
 

-- 


Reply via email to