Use client size for calculating column sizes, not the full size

We need account for the place taken by the vertical scrollbar, if any.
This commit is contained in:
Vadim Zeitlin
2020-05-01 03:21:45 +02:00
parent f10d9e199f
commit 7a8f04302f

View File

@@ -5075,7 +5075,7 @@ void wxDataViewMainWindow::UpdateColumnSizes()
wxDataViewCtrl *owner = GetOwner();
int fullWinWidth = GetSize().x;
int fullWinWidth = GetClientSize().x;
// Find the last shown column: we shouldn't bother to resize the columns
// that are hidden anyhow.