FIX: the input warning tip not shown correctly
jira: [STUDIO-9382] Change-Id: I2edc993bcca0dcc58bc2c9f407ae704398bcb9e5
This commit is contained in:
parent
f3e89631f3
commit
eb4ab1258a
|
@ -218,7 +218,7 @@ void TempInput::Warning(bool warn, WarningType type)
|
||||||
|
|
||||||
wxBoxSizer *sizer_body = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer *sizer_body = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
auto body = new wxPanel(wdialog, wxID_ANY, wxDefaultPosition, {FromDIP(260), -1}, wxTAB_TRAVERSAL);
|
auto body = new wxPanel(wdialog, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL);
|
||||||
body->SetBackgroundColour(wxColour(0xFFFFFF));
|
body->SetBackgroundColour(wxColour(0xFFFFFF));
|
||||||
|
|
||||||
|
|
||||||
|
@ -256,6 +256,7 @@ void TempInput::Warning(bool warn, WarningType type)
|
||||||
warning_string = _L("The minmum temperature should not be less than " + wxString::Format("%d", max_temp));
|
warning_string = _L("The minmum temperature should not be less than " + wxString::Format("%d", max_temp));
|
||||||
|
|
||||||
warning_text->SetLabel(warning_string);
|
warning_text->SetLabel(warning_string);
|
||||||
|
wdialog->Fit();
|
||||||
wdialog->Popup();
|
wdialog->Popup();
|
||||||
} else {
|
} else {
|
||||||
if (wdialog)
|
if (wdialog)
|
||||||
|
|
Loading…
Reference in New Issue