In the case where there is no pane-divider, add space at top

This commit is contained in:
Robin Gareus 2025-06-11 20:24:50 +02:00
parent 15079176ac
commit 31a75af243
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -18,6 +18,7 @@
*/ */
#include <ytkmm/action.h> #include <ytkmm/action.h>
#include <ytkmm/alignment.h>
#include <ytkmm/frame.h> #include <ytkmm/frame.h>
#include <ytkmm/notebook.h> #include <ytkmm/notebook.h>
#include <ytkmm/window.h> #include <ytkmm/window.h>
@ -149,7 +150,11 @@ Tabbable::default_layout ()
content_bottom_pane.add (content_att_bottom); content_bottom_pane.add (content_att_bottom);
} else { } else {
content_inner_hbox.pack_start (content_main_vbox, true, true); 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); content_inner_hbox.pack_start (content_bus_vbox, false, false);