Small cosmetics for the preference panel
* Prevent the scrollview from jumping vertically when selecting a service * Glue the services view to the top
This commit is contained in:
parent
422b0ec754
commit
26cc9e9e07
@ -126,7 +126,7 @@ NetworkWindow::NetworkWindow()
|
|||||||
|
|
||||||
BScrollView* scrollView = new BScrollView("ScrollView", fListView,
|
BScrollView* scrollView = new BScrollView("ScrollView", fListView,
|
||||||
0, false, true);
|
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,
|
fAddOnShellView = new BView("add-on shell", 0,
|
||||||
new BGroupLayout(B_VERTICAL));
|
new BGroupLayout(B_VERTICAL));
|
||||||
|
@ -50,6 +50,7 @@ ServiceView::ServiceView(const char* name, const char* executable,
|
|||||||
BLayoutBuilder::Group<>(this, B_VERTICAL)
|
BLayoutBuilder::Group<>(this, B_VERTICAL)
|
||||||
.Add(titleView)
|
.Add(titleView)
|
||||||
.Add(descriptionView)
|
.Add(descriptionView)
|
||||||
|
.AddGlue()
|
||||||
.AddGroup(B_HORIZONTAL)
|
.AddGroup(B_HORIZONTAL)
|
||||||
.AddGlue()
|
.AddGlue()
|
||||||
.Add(fEnableButton);
|
.Add(fEnableButton);
|
||||||
|
Loading…
Reference in New Issue
Block a user