mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-14 09:03:54 +01:00
Sufficient width of text control boxes (don't hard-code char width)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user