From 7a01e91863907a9c7510dd12214b47fa6900c3ed Mon Sep 17 00:00:00 2001 From: Bailey Carlson Date: Tue, 9 Jun 2020 21:16:41 -0600 Subject: [PATCH] Expander: prevent "Show Contents" checkbox shift 1px Relocate ExpanderWindow ScrollView outside of vertical LayoutGroup to prevent show/hide from shifting the LayoutGroup. Fixes #15692 Change-Id: Ie6cb58a78b07ff74e890e475e7cce359dd93b21e Reviewed-on: https://review.haiku-os.org/c/haiku/+/2899 Reviewed-by: waddlesplash --- src/apps/expander/ExpanderWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/expander/ExpanderWindow.cpp b/src/apps/expander/ExpanderWindow.cpp index 8fb0054177..a128d5142e 100644 --- a/src/apps/expander/ExpanderWindow.cpp +++ b/src/apps/expander/ExpanderWindow.cpp @@ -152,9 +152,9 @@ ExpanderWindow::ExpanderWindow(BRect frame, const entry_ref* ref, .Add(fStatusView = new StatusView()) .End() .End() - .Add(fScrollView) .SetInsets(B_USE_WINDOW_SPACING) - .End(); + .End() + .Add(fScrollView); pathLayout->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET)); size = GetLayout()->View()->PreferredSize();