mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-05 19:27:57 -05:00
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
This commit is contained in:
1 parent
6268535d2f
commit
33c07cc74d
4 files changed
+12
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user