From: Julian Smart Date: Fri, 9 Oct 2009 07:26:54 +0000 (+0000) Subject: Revert a workaround for Windows native border side-effect since latter is now fixed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e77af0118e9ac7a58fa39e562cdf9b6a0642e573 Revert a workaround for Windows native border side-effect since latter is now fixed and former causes a positioning problem when the scrollbar is not at the home position and the grid is resized. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index 3030939a1a..d402c75efd 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -4309,10 +4309,7 @@ void wxPropertyGrid::RecalculateVirtualSize( int forceXPos ) m_width = width; m_height = height; - // Explicitly pass the position - works around a bug in wxWidgets when the property grid - // has a native XP border and a contained window creeps up-and-left when size is set without - // the position. - m_canvas->SetSize( 0, 0, x, y ); + m_canvas->SetSize( x, y ); m_pState->CheckColumnWidths();