forked from enlightenment/efl
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:
parent
cb817caa80
commit
c33aaf32a8
|
@ -2417,6 +2417,7 @@ _elm_code_widget_efl_canvas_group_group_add(Eo *obj, Elm_Code_Widget_Data *pd)
|
||||||
gridrows = elm_box_add(scroller);
|
gridrows = elm_box_add(scroller);
|
||||||
evas_object_size_hint_weight_set(gridrows, EVAS_HINT_EXPAND, 0.0);
|
evas_object_size_hint_weight_set(gridrows, EVAS_HINT_EXPAND, 0.0);
|
||||||
evas_object_size_hint_align_set(gridrows, EVAS_HINT_FILL, 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);
|
elm_object_content_set(scroller, gridrows);
|
||||||
pd->gridbox = gridrows;
|
pd->gridbox = gridrows;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue