From d9bfd0a3d90da86516f19e7e2be0d351f383b9c3 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Tue, 4 Sep 2018 16:10:36 +0100 Subject: [PATCH] main: use scroller as container for logpane. This allows for full contraction and expansion of the bottom panel with no visual bogosity. --- src/bin/edi_main.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/bin/edi_main.c b/src/bin/edi_main.c index c2f8e2d..a4cb970 100644 --- a/src/bin/edi_main.c +++ b/src/bin/edi_main.c @@ -327,7 +327,7 @@ _edi_toolbar_separator_add(Evas_Object *tb) static Evas_Object * edi_content_setup(Evas_Object *win, const char *path) { - Evas_Object *filepane, *logpane, *logpanels, *content_out, *content_in, *tb; + Evas_Object *filepane, *logpane, *logpanels, *scroller, *content_out, *content_in, *tb; Evas_Object *icon, *button, *mainview; filepane = elm_panes_add(win); @@ -382,11 +382,16 @@ edi_content_setup(Evas_Object *win, const char *path) edi_mainview_add(mainview, win); elm_object_part_content_set(filepane, "right", content_in); - elm_box_pack_end(content_out, filepane); - - elm_object_part_content_set(logpane, "top", content_out); evas_object_show(filepane); _edi_leftpanes = filepane; + elm_box_pack_end(content_out, filepane); + + scroller = elm_scroller_add(win); + evas_object_size_hint_weight_set(scroller, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(scroller, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_show(scroller); + elm_object_content_set(scroller, content_out); + elm_object_part_content_set(logpane, "top", scroller); // add file list evas_object_size_hint_weight_set(_edi_filepanel, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);