diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-12-06 19:19:38 +0100 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-12-06 19:19:38 +0100 |
commit | c33aaf32a86de25f92847373b072e327b884a324 (patch) | |
tree | 59c32bc28a194482eec80ce8147900ede34625a6 | |
parent | cb817caa808b927937bd1f73428acfc4ad7d03f2 (diff) | |
download | efl-c33aaf32a86de25f92847373b072e327b884a324.tar.gz |
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.
-rw-r--r-- | src/lib/elementary/elm_code_widget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c index 30c87327a6..d18f6126a2 100644 --- a/src/lib/elementary/elm_code_widget.c +++ b/src/lib/elementary/elm_code_widget.c @@ -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; |