mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 16:40:07 +02:00
Set the minimum height to be slightly bigger than default, as fix for bug 161.
The magic number 7 was determined by Ed's experimentation. Frankly, this is a hack to work around a bug in wxTreebook, and will have to be revisited if we add another category to mCategories.
This commit is contained in:
parent
192c0d9a0a
commit
f13cdd542c
@ -118,7 +118,7 @@ PrefsDialog::PrefsDialog(wxWindow * parent)
|
||||
S.AddWindow(mCategories, wxEXPAND);
|
||||
|
||||
wxWindow *w;
|
||||
// Parameters are: AppPage( page, name, IsSelected, imageId)
|
||||
// Parameters are: AddPage(page, name, IsSelected, imageId).
|
||||
w = new DevicePrefs(mCategories); mCategories->AddPage(w, w->GetName(), false, 0);
|
||||
w = new PlaybackPrefs(mCategories); mCategories->AddPage(w, w->GetName(), false, 0);
|
||||
w = new RecordingPrefs(mCategories); mCategories->AddPage(w, w->GetName(), false, 0);
|
||||
@ -187,7 +187,11 @@ PrefsDialog::PrefsDialog(wxWindow * parent)
|
||||
sz.y = 600;
|
||||
}
|
||||
|
||||
SetSizeHints(sz.x, sz.y, 800, 600);
|
||||
// Set the minimum height to be slightly bigger than default, as fix for bug 161.
|
||||
// The magic number 7 was determined by Ed's experimentation.
|
||||
// Frankly, this is a hack to work around a bug in wxTreebook, and
|
||||
// will have to be revisited if we add another category to mCategories.
|
||||
SetSizeHints(sz.x, sz.y + 7, 800, 600);
|
||||
|
||||
// Center after all that resizing, but make sure it doesn't end up
|
||||
// off-screen
|
||||
|
Loading…
x
Reference in New Issue
Block a user