From acd4d87abfd810b60379833e9b43909af04e979f Mon Sep 17 00:00:00 2001 From: yw4z Date: Mon, 2 Nov 2026 20:07:52 +0300 Subject: [PATCH] Fix: Object list Name column not refitted when the vertical scrollbar toggles on Windows (#17169) * init * revert changes for linux (cherry picked from commit e8ebe3451a316d6d5e13dc01496603e8a9c257f3) --- src/slic3r/GUI/GUI_ObjectList.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index 78b2b1c0ca..ff25e55699 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -347,11 +347,13 @@ ObjectList::ObjectList(wxWindow* parent) : //Bind(wxCUSTOMEVT_LAST_VOLUME_IS_DELETED, [this](wxCommandEvent& e) { last_volume_is_deleted(e.GetInt()); }); Bind(wxEVT_SIZE, ([this](wxSizeEvent &e) { - if (m_last_size == this->GetSize()) { + // ORCA: compare client size instead window size + // Name column stays wide that shows horizontal scrollbar when vertical scrollbar (dis)appears + if (m_last_size == this->GetClientSize()) { e.Skip(); return; } else { - m_last_size = this->GetSize(); + m_last_size = this->GetClientSize(); } update_name_column_width(); @@ -361,7 +363,7 @@ ObjectList::ObjectList(wxWindow* parent) : e.Skip(); })); - m_last_size = this->GetSize(); + m_last_size = this->GetClientSize(); } ObjectList::~ObjectList()