Fix: Object list Name column not refitted when the vertical scrollbar toggles on Windows (#17169)

* init

* revert changes for linux

(cherry picked from commit e8ebe3451a)
This commit is contained in:
yw4z authored and Hanif Koh committed 2026-11-14 09:39:44 +08:00
1 parent d3f339ceb1
commit acd4d87abf
1 file changed
+5 -3
+5 -3
View File
@@ -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()