Corrected tree ctrl behaviour.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-05-19 10:27:11 +00:00
parent 74505862d0
commit ea5c6ca7f7
4 changed files with 22 additions and 21 deletions

View File

@@ -950,7 +950,7 @@ void wxTreeCtrl::EnsureVisible(const wxTreeItemId& item)
int x_pos = GetScrollPos( wxHORIZONTAL );
SetScrollbars( 10, 10, x/10, y/10, x_pos, (item_y-client_h/2)/10 );
}
else if (item_y > start_y+client_h-16)
else if (item_y > start_y+client_h-20)
{
int x = 0;
int y = 0;