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 <waddlesplash@gmail.com>
This commit is contained in:
parent
bb6b48a9c3
commit
7a01e91863
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user