From 26cc9e9e0789105b0c4589f9cd4754b2aad95230 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Tue, 11 Aug 2015 18:01:39 +0200 Subject: [PATCH] Small cosmetics for the preference panel * Prevent the scrollview from jumping vertically when selecting a service * Glue the services view to the top --- src/preferences/network/NetworkWindow.cpp | 2 +- src/preferences/network/ServiceView.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/preferences/network/NetworkWindow.cpp b/src/preferences/network/NetworkWindow.cpp index b9b42fec31..a721538ba4 100644 --- a/src/preferences/network/NetworkWindow.cpp +++ b/src/preferences/network/NetworkWindow.cpp @@ -126,7 +126,7 @@ NetworkWindow::NetworkWindow() BScrollView* scrollView = new BScrollView("ScrollView", fListView, 0, false, true); - scrollView->SetExplicitMinSize(BSize(B_SIZE_UNSET, 42)); + scrollView->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET)); fAddOnShellView = new BView("add-on shell", 0, new BGroupLayout(B_VERTICAL)); diff --git a/src/preferences/network/ServiceView.cpp b/src/preferences/network/ServiceView.cpp index a0dd9b09a3..efa045352a 100644 --- a/src/preferences/network/ServiceView.cpp +++ b/src/preferences/network/ServiceView.cpp @@ -50,6 +50,7 @@ ServiceView::ServiceView(const char* name, const char* executable, BLayoutBuilder::Group<>(this, B_VERTICAL) .Add(titleView) .Add(descriptionView) + .AddGlue() .AddGroup(B_HORIZONTAL) .AddGlue() .Add(fEnableButton);