Skip to content
Snippets Groups Projects
Commit ce31c371 authored by James Crook's avatar James Crook
Browse files

Bug 1983 residual - Width of mixer toolbar changes.

parent f07e40a4
No related branches found
No related tags found
No related merge requests found
...@@ -165,6 +165,7 @@ void MixerToolBar::UpdatePrefs() ...@@ -165,6 +165,7 @@ void MixerToolBar::UpdatePrefs()
// Show or hide the input slider based on whether it works // Show or hide the input slider based on whether it works
mInputSlider->Enable(gAudioIO->InputMixerWorks()); mInputSlider->Enable(gAudioIO->InputMixerWorks());
wxSize oldSize( GetSize() );
// Layout the toolbar // Layout the toolbar
Layout(); Layout();
...@@ -173,11 +174,18 @@ void MixerToolBar::UpdatePrefs() ...@@ -173,11 +174,18 @@ void MixerToolBar::UpdatePrefs()
//Fit(); //Fit();
// And make that size the minimum // And make that size the minimum
SetMinSize( wxWindow::GetSizer()->GetMinSize() ); wxSize newMinSize( wxWindow::GetSizer()->GetMinSize() );
SetSize( GetMinSize() ); SetMinSize( newMinSize );
// IF size must increase, do so.
if( newMinSize.y > oldSize.y ){
SetSize( newMinSize );
// Notify someone that we've changed our size // Notify someone that we've changed our size
Updated(); Updated();
}
// ELSE preserve original size.
else
SetSize( oldSize );
#endif #endif
// Set label to pull in language change // Set label to pull in language change
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment