forked from enlightenment/efl
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
This commit is contained in:
parent
9bc9eff716
commit
8de8f059c9
|
@ -542,6 +542,8 @@ _elm_code_widget_refresh(Elm_Code_Widget *widget, Elm_Code_Line *line)
|
||||||
return ;
|
return ;
|
||||||
|
|
||||||
_elm_code_widget_fill_update(widget, first_row, last_row, line);
|
_elm_code_widget_fill_update(widget, first_row, last_row, line);
|
||||||
|
if (pd->editable)
|
||||||
|
_elm_code_widget_cursor_update(widget, pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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);
|
gutter = efl_ui_code_widget_text_left_gutter_width_get(widget);
|
||||||
|
|
||||||
grid = eina_list_nth(pd->grids, row - 1);
|
grid = eina_list_nth(pd->grids, row - 1);
|
||||||
|
evas_object_smart_calculate(pd->gridbox);
|
||||||
evas_object_geometry_get(grid, x, y, NULL, NULL);
|
evas_object_geometry_get(grid, x, y, NULL, NULL);
|
||||||
|
|
||||||
if (x)
|
if (x)
|
||||||
|
|
Loading…
Reference in New Issue