mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-06 14:52:34 +02:00
Bug 1983 residual - Width of mixer toolbar changes.
This commit is contained in:
parent
f07e40a4c0
commit
ce31c371b9
@ -165,6 +165,7 @@ void MixerToolBar::UpdatePrefs()
|
||||
|
||||
// Show or hide the input slider based on whether it works
|
||||
mInputSlider->Enable(gAudioIO->InputMixerWorks());
|
||||
wxSize oldSize( GetSize() );
|
||||
|
||||
// Layout the toolbar
|
||||
Layout();
|
||||
@ -173,11 +174,18 @@ void MixerToolBar::UpdatePrefs()
|
||||
//Fit();
|
||||
|
||||
// And make that size the minimum
|
||||
SetMinSize( wxWindow::GetSizer()->GetMinSize() );
|
||||
SetSize( GetMinSize() );
|
||||
wxSize newMinSize( wxWindow::GetSizer()->GetMinSize() );
|
||||
SetMinSize( newMinSize );
|
||||
|
||||
// IF size must increase, do so.
|
||||
if( newMinSize.y > oldSize.y ){
|
||||
SetSize( newMinSize );
|
||||
// Notify someone that we've changed our size
|
||||
Updated();
|
||||
}
|
||||
// ELSE preserve original size.
|
||||
else
|
||||
SetSize( oldSize );
|
||||
#endif
|
||||
|
||||
// Set label to pull in language change
|
||||
|
Loading…
x
Reference in New Issue
Block a user