From 85e2ecc0a40109f98e395d90e32b55adf79b7d97 Mon Sep 17 00:00:00 2001 From: MartenH Date: Sat, 20 Jun 2026 12:44:12 +0200 Subject: [PATCH] fix(dock): tabbed panel groups render a blank gap above their content MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A panel group with 2+ tabs rendered a large empty gap between the tab bar and the panel content. The per-tab separator was `column(width: 1, sizing: fixed_fill)` — a height-fill child inside the fit-height `dock_tab_bar` row, so the row expanded to fill the group instead of fitting the tabs, pushing the content down. It only showed with 2+ tabs (the separator is added between tabs), so single-tab groups were fine. Give the separator a definite height (fixed_fixed) so the tab bar fits its tabs again; the divider is still drawn. Repro: put two panels in one group, e.g. dock_panel_group('g', ['a', 'b'], 'a') and observe the blank band above the content; gone with this change. Co-Authored-By: Claude Opus 4.8 (1M context) --- view_dock_layout.v | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/view_dock_layout.v b/view_dock_layout.v index 1b18848..ac805ac 100644 --- a/view_dock_layout.v +++ b/view_dock_layout.v @@ -203,7 +203,10 @@ fn dock_group_view(core &DockLayoutCore, group &DockNode, cfg DockLayoutCfg, dra } if tab_buttons.len > 0 { - tab_buttons << column(width: 1, sizing: fixed_fill, color: color_sep) + // Use a definite height, not fixed_fill: a height-fill child inside the + // fit-height tab-bar row makes the row expand to fill the group, leaving a + // large blank gap above the panel content whenever a group has 2+ tabs. + tab_buttons << column(width: 1, height: 20, sizing: fixed_fixed, color: color_sep) } tab_buttons << dock_tab_button(core, group, panel_def, is_selected, cfg) }