diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-09-27 16:33:35 +0200 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2019-09-30 10:46:40 +0200 |
commit | 8de8f059c94f1edc718d59a5fa53bfec26c7c31d (patch) | |
tree | 0ac67ab6d5923bb2c4cc645e7d9557311603079a | |
parent | 9bc9eff716a4fde5514bf4a9225a25a9dd11e2d0 (diff) | |
download | efl-8de8f059c94f1edc718d59a5fa53bfec26c7c31d.tar.gz |
elm_code_widget: when the position is updated, set new geom to cursor
in order to do that, we need to ensure that the internal box is
calculated, otherwise the position is still not updated correctly.
This fixes wrong cursor positions in edi.
fixes T8214
Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D10225
-rw-r--r-- | src/lib/elementary/elm_code_widget.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c index 7979a4d28a..30c87327a6 100644 --- a/src/lib/elementary/elm_code_widget.c +++ b/src/lib/elementary/elm_code_widget.c @@ -542,6 +542,8 @@ _elm_code_widget_refresh(Elm_Code_Widget *widget, Elm_Code_Line *line) return ; _elm_code_widget_fill_update(widget, first_row, last_row, line); + if (pd->editable) + _elm_code_widget_cursor_update(widget, pd); } static void @@ -798,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->gridbox); evas_object_geometry_get(grid, x, y, NULL, NULL); if (x) |