From fc3b6963c7c1285aefc7ca0a6c4c1c1a178297df Mon Sep 17 00:00:00 2001 From: Stephen Houston Date: Tue, 27 Jan 2015 10:43:32 -0600 Subject: [PATCH] Elm_Code: Keep up with min size so scroller works properly. --- elm_code/lib/elm_code_widget.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elm_code/lib/elm_code_widget.c b/elm_code/lib/elm_code_widget.c index 0e74afe..cec8fdb 100644 --- a/elm_code/lib/elm_code_widget.c +++ b/elm_code/lib/elm_code_widget.c @@ -151,7 +151,7 @@ _elm_code_widget_fill(Elm_Code_Widget_Data *pd) { Elm_Code_Line *line; Evas_Textgrid_Cell *cells; - int w, h; + int w, h, cw, ch; unsigned int y; if (!_elm_code_widget_resize(pd->grid)) @@ -165,6 +165,8 @@ _elm_code_widget_fill(Elm_Code_Widget_Data *pd) cells = evas_object_textgrid_cellrow_get(pd->grid, y - 1); _elm_code_widget_fill_line(pd, cells, line); } + evas_object_textgrid_cell_size_get(pd->grid, &cw, &ch); + evas_object_size_hint_min_set(pd->grid, w*cw, y*ch); } static Eina_Bool