mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-11-04 08:04:06 +01: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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user