From c780d7c056f728fab2948f0cb98412049645fd3e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 11 Oct 2025 18:05:05 +0200 Subject: [PATCH] Don't blindly enforce a min attachment width/height This also fixed a copy/edit type. enabling PaneBottom set a min-width to content_right_pane :) --- libs/widgets/tabbable.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/libs/widgets/tabbable.cc b/libs/widgets/tabbable.cc index a0cd824fa5..1f94c764d5 100644 --- a/libs/widgets/tabbable.cc +++ b/libs/widgets/tabbable.cc @@ -152,23 +152,13 @@ Tabbable::default_layout () content_inner_hbox.pack_start (content_bus_vbox, false, false); content_bus_vbox.pack_start (content_bus, true, true); - /* set pane min. sizes */ - - if (_panelayout & PaneRight) { - content_right_pane.set_child_minsize (content_att_right, 160); /* rough guess at width of notebook tabs */ - } + /* set default pane positions */ content_right_pane.set_check_divider_position (true); content_right_pane.set_divider (0, 0.85); - if (_panelayout & PaneLeft) { - content_left_pane.set_child_minsize (content_att_left, 80); - } content_left_pane.set_check_divider_position (true); content_left_pane.set_divider (0, 0.15); - if (_panelayout & PaneBottom) { - content_bottom_pane.set_child_minsize (content_right_pane, 300); - } content_bottom_pane.set_check_divider_position (true); content_bottom_pane.set_divider (0, 0.85);