]> git.saurik.com Git - wxWidgets.git/commitdiff
Revert a workaround for Windows native border side-effect since latter is now fixed
authorJulian Smart <julian@anthemion.co.uk>
Fri, 9 Oct 2009 07:26:54 +0000 (07:26 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 9 Oct 2009 07:26:54 +0000 (07:26 +0000)
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

src/propgrid/propgrid.cpp

index 3030939a1ac0a150fee294ca75563eebd5763d99..d402c75efda8b91490d9dcffa463c123b470a19c 100644 (file)
@@ -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();