From eb4ab1258a47e8c3e8c01edbe8cd6935c82a0e47 Mon Sep 17 00:00:00 2001 From: "xin.zhang" Date: Tue, 31 Dec 2024 10:28:49 +0800 Subject: [PATCH] FIX: the input warning tip not shown correctly jira: [STUDIO-9382] Change-Id: I2edc993bcca0dcc58bc2c9f407ae704398bcb9e5 --- src/slic3r/GUI/Widgets/TempInput.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Widgets/TempInput.cpp b/src/slic3r/GUI/Widgets/TempInput.cpp index 590be69ea..a2a6738e6 100644 --- a/src/slic3r/GUI/Widgets/TempInput.cpp +++ b/src/slic3r/GUI/Widgets/TempInput.cpp @@ -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)