elm_code: set box align correctly

sometimes the resize size is not in line with the size of the outer
widget, in this case the box should align its children at the very top,
otherwise the cursor grid is falling out of sync with the text content.
This commit is contained in:
Marcel Hollerbach 2019-12-06 19:19:38 +01:00
parent cb817caa80
commit c33aaf32a8
1 changed files with 1 additions and 0 deletions

View File

@ -2417,6 +2417,7 @@ _elm_code_widget_efl_canvas_group_group_add(Eo *obj, Elm_Code_Widget_Data *pd)
gridrows = elm_box_add(scroller);
evas_object_size_hint_weight_set(gridrows, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(gridrows, EVAS_HINT_FILL, 0.0);
elm_box_align_set(gridrows, 0.0, 0.0);
elm_object_content_set(scroller, gridrows);
pd->gridbox = gridrows;