Skip to content

Commit

Permalink
Make prefs window height depend on content
Browse files Browse the repository at this point in the history
  • Loading branch information
jscipione committed Dec 20, 2012
1 parent c5b556a commit 9fd9f94
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/apps/deskbar/PreferencesWindow.cpp
Expand Up @@ -237,7 +237,6 @@ PreferencesWindow::PreferencesWindow(BRect frame)
.SetInsets(0, B_USE_DEFAULT_SPACING, 0, 0)
.Add(fAppsIconSizeSlider)
.End()
.AddGlue()
.SetInsets(B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING,
B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING)
.End()
Expand All @@ -248,7 +247,6 @@ PreferencesWindow::PreferencesWindow(BRect frame)
.Add(fWindowAlwaysOnTop)
.Add(fWindowAutoRaise)
.Add(fWindowAutoHide)
.AddGlue()
.SetInsets(B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING,
B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING)
.End()
Expand Down Expand Up @@ -398,7 +396,7 @@ PreferencesWindow::_HandleChangedSettingsView()
dynamic_cast<SettingsItem*>
(fSettingsTypeListView->ItemAt(currentSelection));

if (selectedItem) {
if (selectedItem != NULL) {
fSettingsContainerBox->SetLabel(selectedItem->Text());

BView* view = selectedItem->View();
Expand Down

0 comments on commit 9fd9f94

Please sign in to comment.