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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user