From 7a8f04302ffbd79612ab98d60e5004bd24da24d5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 1 May 2020 03:21:45 +0200 Subject: [PATCH] Use client size for calculating column sizes, not the full size We need account for the place taken by the vertical scrollbar, if any. --- src/generic/datavgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index b8249e9fbf..2f672c664f 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -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.