From 33c07cc74d3e6b8fd91b4a14ec44a9c401861e6e Mon Sep 17 00:00:00 2001 From: Kris Austin Date: Sat, 14 Nov 2026 10:46:32 -0600 Subject: [PATCH] Fix overlapping text under "Check the reason" on macOS (#17366) The error panel that "Check the reason" opens in the print, send, calibration and bind dialogs is a scrolled window with a fixed size. It starts hidden, and showing it gives it the size it already had. macOS only sends a size event when the size changes, so the panel never laid out its rows and drew them all at its top-left corner. Lay the panel out when it opens. Fixes #17065 --- src/slic3r/GUI/BindDialog.cpp | 3 +++ src/slic3r/GUI/CalibrationWizardPage.cpp | 3 +++ src/slic3r/GUI/SelectMachine.cpp | 3 +++ src/slic3r/GUI/SendToPrinter.cpp | 3 +++ 4 files changed, 12 insertions(+) diff --git a/src/slic3r/GUI/BindDialog.cpp b/src/slic3r/GUI/BindDialog.cpp index 90b2c937dc..95167580ae 100644 --- a/src/slic3r/GUI/BindDialog.cpp +++ b/src/slic3r/GUI/BindDialog.cpp @@ -767,6 +767,9 @@ PingCodeBindDialog::~PingCodeBindDialog() { m_st_txt_error_code->Wrap(FromDIP(330)); m_st_txt_error_desc->Wrap(FromDIP(330)); m_st_txt_extra_info->Wrap(FromDIP(330)); + + // Lays out the fixed-size panel, which gets no size event on macOS + m_sw_bind_failed_info->FitInside(); } else { m_sw_bind_failed_info->Show(false); diff --git a/src/slic3r/GUI/CalibrationWizardPage.cpp b/src/slic3r/GUI/CalibrationWizardPage.cpp index 36c8ca2072..7d58333790 100644 --- a/src/slic3r/GUI/CalibrationWizardPage.cpp +++ b/src/slic3r/GUI/CalibrationWizardPage.cpp @@ -957,6 +957,9 @@ void CaliPageSendingPanel::show_send_failed_info(bool show, int code, wxString d m_st_txt_error_code->Wrap(FromDIP(260)); m_st_txt_error_desc->Wrap(FromDIP(260)); m_st_txt_extra_info->Wrap(FromDIP(260)); + + // Lays out the fixed-size panel, which gets no size event on macOS + m_sw_print_failed_info->FitInside(); } else { m_sw_print_failed_info->Show(false); diff --git a/src/slic3r/GUI/SelectMachine.cpp b/src/slic3r/GUI/SelectMachine.cpp index 07b54d5bcf..6a5fc8eb8e 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -1002,6 +1002,9 @@ void SelectMachineDialog::show_print_failed_info(bool show, int code, wxString d m_st_txt_error_code->Wrap(FromDIP(500)); m_st_txt_error_desc->Wrap(FromDIP(500)); m_st_txt_extra_info->Wrap(FromDIP(500)); + + // Lays out the fixed-size panel, which gets no size event on macOS + m_sw_print_failed_info->FitInside(); } else { m_sw_print_failed_info->Show(false); diff --git a/src/slic3r/GUI/SendToPrinter.cpp b/src/slic3r/GUI/SendToPrinter.cpp index fcfaa1737d..aab8b9aca2 100644 --- a/src/slic3r/GUI/SendToPrinter.cpp +++ b/src/slic3r/GUI/SendToPrinter.cpp @@ -741,6 +741,9 @@ void SendToPrinterDialog::show_print_failed_info(bool show, int code, wxString d m_st_txt_error_code->Wrap(FromDIP(260)); m_st_txt_error_desc->Wrap(FromDIP(260)); m_st_txt_extra_info->Wrap(FromDIP(260)); + + // Lays out the fixed-size panel, which gets no size event on macOS + m_sw_print_failed_info->FitInside(); } else { m_sw_print_failed_info->Show(false);