No longer overestimate virtual height given to the vertical scroll bar

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-02-26 19:35:46 +00:00
parent 4584344296
commit bb2e05cf28

View File

@@ -3787,7 +3787,7 @@ void wxPropertyGrid::RecalculateVirtualSize( int forceXPos )
else if ( xPos > (xAmount-(width/wxPG_PIXELS_PER_UNIT)) )
xPos = 0;
int yAmount = (y+wxPG_PIXELS_PER_UNIT+2)/wxPG_PIXELS_PER_UNIT;
int yAmount = y / wxPG_PIXELS_PER_UNIT;
int yPos = GetScrollPos( wxVERTICAL );
SetScrollbars( wxPG_PIXELS_PER_UNIT, wxPG_PIXELS_PER_UNIT,