1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 23:59:41 +02:00

Sufficient width of text control boxes (don't hard-code char width)

This commit is contained in:
Paul Licameli 2020-03-28 22:36:58 -04:00
parent f2b96ff640
commit 2397499ba3

View File

@ -617,7 +617,9 @@ wxTextCtrl * ShuttleGuiBase::AddTextBox(
wxSize Size(wxDefaultSize);
if( nChars > 0 )
{
Size.SetWidth( nChars *5 );
int width;
mpDlg->GetTextExtent( wxT("9"), &width, nullptr );
Size.SetWidth( nChars * width );
}
miProp=0;