Make prefs window height depend on content
This commit is contained in:
parent
c5b556a080
commit
9fd9f94dcc
@ -237,7 +237,6 @@ PreferencesWindow::PreferencesWindow(BRect frame)
|
|||||||
.SetInsets(0, B_USE_DEFAULT_SPACING, 0, 0)
|
.SetInsets(0, B_USE_DEFAULT_SPACING, 0, 0)
|
||||||
.Add(fAppsIconSizeSlider)
|
.Add(fAppsIconSizeSlider)
|
||||||
.End()
|
.End()
|
||||||
.AddGlue()
|
|
||||||
.SetInsets(B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING,
|
.SetInsets(B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING,
|
||||||
B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING)
|
B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING)
|
||||||
.End()
|
.End()
|
||||||
@ -248,7 +247,6 @@ PreferencesWindow::PreferencesWindow(BRect frame)
|
|||||||
.Add(fWindowAlwaysOnTop)
|
.Add(fWindowAlwaysOnTop)
|
||||||
.Add(fWindowAutoRaise)
|
.Add(fWindowAutoRaise)
|
||||||
.Add(fWindowAutoHide)
|
.Add(fWindowAutoHide)
|
||||||
.AddGlue()
|
|
||||||
.SetInsets(B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING,
|
.SetInsets(B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING,
|
||||||
B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING)
|
B_USE_DEFAULT_SPACING, B_USE_DEFAULT_SPACING)
|
||||||
.End()
|
.End()
|
||||||
@ -398,7 +396,7 @@ PreferencesWindow::_HandleChangedSettingsView()
|
|||||||
dynamic_cast<SettingsItem*>
|
dynamic_cast<SettingsItem*>
|
||||||
(fSettingsTypeListView->ItemAt(currentSelection));
|
(fSettingsTypeListView->ItemAt(currentSelection));
|
||||||
|
|
||||||
if (selectedItem) {
|
if (selectedItem != NULL) {
|
||||||
fSettingsContainerBox->SetLabel(selectedItem->Text());
|
fSettingsContainerBox->SetLabel(selectedItem->Text());
|
||||||
|
|
||||||
BView* view = selectedItem->View();
|
BView* view = selectedItem->View();
|
||||||
|
Loading…
Reference in New Issue
Block a user