From 5342045e20a0d8643646a11f6d80eb1262a17c6d Mon Sep 17 00:00:00 2001 From: Humdinger Date: Sun, 25 Jan 2026 09:50:29 +0100 Subject: [PATCH] Expander: Put scroll view flush to borders MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * To avoid "micro-padding" around the scrollview, use a negative inset to have the scrollview join borders with the window. * Make it a regular B_DOCUMENT_WINDOW to have a full-sized resizing corner. Fixes #19915 Change-Id: I879eca719f91f2ae67236ecfb4cb8be1b280f2fc Reviewed-on: https://review.haiku-os.org/c/haiku/+/10267 Tested-by: Commit checker robot Reviewed-by: waddlesplash Reviewed-by: Axel Dörfler --- src/apps/expander/ExpanderWindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/apps/expander/ExpanderWindow.cpp b/src/apps/expander/ExpanderWindow.cpp index 8505b1996e..1f56e24d17 100644 --- a/src/apps/expander/ExpanderWindow.cpp +++ b/src/apps/expander/ExpanderWindow.cpp @@ -88,7 +88,7 @@ private: ExpanderWindow::ExpanderWindow(BRect frame, const entry_ref* ref, BMessage* settings) : - BWindow(frame, B_TRANSLATE_SYSTEM_NAME("Expander"), B_TITLED_WINDOW, + BWindow(frame, B_TRANSLATE_SYSTEM_NAME("Expander"), B_DOCUMENT_WINDOW, B_NORMAL_WINDOW_FEEL), fSourcePanel(NULL), fDestPanel(NULL), @@ -152,7 +152,9 @@ ExpanderWindow::ExpanderWindow(BRect frame, const entry_ref* ref, .End() .SetInsets(B_USE_WINDOW_SPACING) .End() - .Add(fScrollView); + .AddGroup(B_VERTICAL, 0) + .SetInsets(-2, 0, -2, -2) + .Add(fScrollView); pathLayout->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET)); size = GetLayout()->View()->PreferredSize();