mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-05 11:17:58 -05:00
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:
1 parent
d3f339ceb1
commit
acd4d87abf
1 file changed
+5
-3
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user