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:
parent
f2b96ff640
commit
2397499ba3
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user