Fix uses the approach proposed by David Bailes
This commit is contained in:
Dmitry Vedenko 2021-06-16 16:32:30 +03:00 committed by Paul Licameli
parent de2213ea2c
commit 045fcbf688
1 changed files with 6 additions and 2 deletions

View File

@ -116,7 +116,9 @@ ErrorReportDialog::ErrorReportDialog(
S.AddSpace(0, 6);
S.Style(wxTE_RICH | wxTE_READONLY | wxTE_MULTILINE | wxTE_DONTWRAP).MinSize(wxSize(0,152))
S.Style(wxTE_RICH | wxTE_READONLY | wxTE_MULTILINE | wxTE_DONTWRAP)
.MinSize(wxSize(0, 152))
.Name(XO("Problem details"))
.AddTextBox({}, mReport->GetReportPreview(), 0);
S.AddSpace(0, 20);
@ -126,7 +128,9 @@ ErrorReportDialog::ErrorReportDialog(
S.AddSpace(0, 6);
mCommentsControl = S.Style(wxTE_MULTILINE)
.MinSize(wxSize(0, 76)).AddTextBox({}, {}, 0);
.MinSize(wxSize(0, 76))
.Name(XO("Comments"))
.AddTextBox({}, {}, 0);
mCommentsControl->SetMaxLength(MaxUserCommentLength);