Applied patch [ 863936 ] wxGrid scroll bars not drawn.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-01-08 15:43:29 +00:00
parent 80acaf2583
commit c92ed9f7a7
3 changed files with 17 additions and 20 deletions

View File

@@ -4239,28 +4239,11 @@ void wxGrid::CalcDimensions()
int x, y;
GetViewStart( &x, &y );
// maybe we don't need scrollbars at all?
//
// also adjust the position to be valid for the new scroll rangs
if ( w <= cw )
{
w = x = 0;
}
else
{
// ensure the position is valid for the new scroll ranges
if ( x >= w )
x = w - 1;
}
if ( h <= ch )
{
h = y = 0;
}
else
{
x = wxMax( w - 1, 0 );
if ( y >= h )
y = h - 1;
}
y = wxMax( h - 1, 0 );
// do set scrollbar parameters
SetScrollbars( GRID_SCROLL_LINE_X, GRID_SCROLL_LINE_Y,