mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-24 00:00:06 +02:00
Restrict combo size across the board
This fixes "too tall" toolbar problems on Windows with some scaling settings and doesn't (seem to) hurt on the other platforms.
This commit is contained in:
parent
5cec22e8a0
commit
7f14e8d7ae
@ -320,15 +320,9 @@ void SelectionBar::Populate()
|
||||
}
|
||||
|
||||
// Make sure they are fully expanded to the longest item
|
||||
#if defined(__WXGTK3__)
|
||||
mChoice->SetMinSize(wxSize(mChoice->GetBestSize().x, toolbarSingle));
|
||||
mRateBox->SetMinSize(wxSize(mRateBox->GetBestSize().x, toolbarSingle));
|
||||
mSnapTo->SetMinSize(wxSize(mSnapTo->GetBestSize().x, toolbarSingle));
|
||||
#else
|
||||
mChoice->SetMinSize(wxSize(mChoice->GetBestSize().x, wxDefaultCoord));
|
||||
mRateBox->SetMinSize(wxSize(mRateBox->GetBestSize().x, wxDefaultCoord));
|
||||
mSnapTo->SetMinSize(wxSize(mSnapTo->GetBestSize().x, wxDefaultCoord));
|
||||
#endif
|
||||
|
||||
mChoice->MoveBeforeInTabOrder( mStartTime );
|
||||
// This shows/hides controls.
|
||||
|
@ -159,6 +159,7 @@ void SpectralSelectionBar::Populate()
|
||||
// so that name can be set on a standard control
|
||||
mChoice->SetAccessible(safenew WindowAccessible(mChoice));
|
||||
#endif
|
||||
mChoice->SetMinSize(wxSize(mChoice->GetBestSize().x, toolbarSingle));
|
||||
|
||||
mainSizer->Add(mChoice, 0, wxEXPAND | wxALIGN_TOP | wxRIGHT, 6);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user