mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
FIX: the input warning tip not shown correctly
jira: [STUDIO-9382] Change-Id: I2edc993bcca0dcc58bc2c9f407ae704398bcb9e5 (cherry picked from commit eb4ab1258a47e8c3e8c01edbe8cd6935c82a0e47)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user