From 9ed122b31f7152099717daf810654594e50600c5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 1 May 2020 03:22:40 +0200 Subject: [PATCH] Update column sizes after updating scrollbars, not before As UpdateColumnSizes() uses client size, call it after the client size is set correctly after adjusting scrollbars to the new virtual size. --- 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 2f672c664f..26407f5e66 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -3078,7 +3078,6 @@ void wxDataViewMainWindow::OnInternalIdle() if (m_dirty) { - UpdateColumnSizes(); RecalculateDisplay(); m_dirty = false; } @@ -3098,6 +3097,7 @@ void wxDataViewMainWindow::RecalculateDisplay() SetVirtualSize( width, height ); GetOwner()->SetScrollRate( 10, m_lineHeight ); + UpdateColumnSizes(); Refresh(); }