From 31a75af2434ed4086fe34e1dd37e85991923994c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 11 Jun 2025 20:24:50 +0200 Subject: [PATCH] In the case where there is no pane-divider, add space at top --- libs/widgets/tabbable.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/widgets/tabbable.cc b/libs/widgets/tabbable.cc index 2465df3fea..8ca2f545ae 100644 --- a/libs/widgets/tabbable.cc +++ b/libs/widgets/tabbable.cc @@ -18,6 +18,7 @@ */ #include +#include #include #include #include @@ -149,7 +150,11 @@ Tabbable::default_layout () content_bottom_pane.add (content_att_bottom); } else { content_inner_hbox.pack_start (content_main_vbox, true, true); - content_main_vbox.pack_start (content_att_bottom, false, false); + + Gtk::Alignment* btm_align = manage (new Gtk::Alignment()); + btm_align->set_padding (5, 0, 0, 0); // 5px at top + btm_align->add (content_att_bottom); + content_main_vbox.pack_start (*btm_align, false, false); } content_inner_hbox.pack_start (content_bus_vbox, false, false);