FIX: the input warning tip not shown correctly

jira: [STUDIO-9382]
Change-Id: I2edc993bcca0dcc58bc2c9f407ae704398bcb9e5
This commit is contained in:
xin.zhang 2024-12-31 10:28:49 +08:00 committed by lane.wei
parent f3e89631f3
commit eb4ab1258a
1 changed files with 2 additions and 1 deletions

View File

@ -218,7 +218,7 @@ void TempInput::Warning(bool warn, WarningType type)
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));
@ -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_text->SetLabel(warning_string);
wdialog->Fit();
wdialog->Popup();
} else {
if (wdialog)