From cc32ebc9792f8392c53aca2c8b8ef57c25729b31 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 27 Dec 2018 09:15:55 +0100 Subject: [PATCH] Adjust scroll bar and refresh the grid after changing virtual width --- src/propgrid/propgrid.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index c5f0322cf1..d7f211e3f1 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -4691,6 +4691,8 @@ void wxPropertyGrid::SetVirtualWidth( int width ) SetInternalFlag(wxPG_FL_HAS_VIRTUAL_WIDTH); } m_pState->SetVirtualWidth( width ); + RecalculateVirtualSize(); + Refresh(); } void wxPropertyGrid::SetFocusOnCanvas()