Allow hiding rows in wxGrid with HideRow().
HideRow() was simply ignored as SetRowSize(row, 0) didn't do anything. Check for the special value of 0 and allow it, just as it was done for the columns since r57336. See #14133. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -7682,7 +7682,7 @@ void wxGrid::SetRowSize( int row, int height )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// See comment in SetColSize
|
// See comment in SetColSize
|
||||||
if ( height < GetRowMinimalAcceptableHeight())
|
if ( height > 0 && height < GetRowMinimalAcceptableHeight())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ( m_rowHeights.IsEmpty() )
|
if ( m_rowHeights.IsEmpty() )
|
||||||
@@ -7701,7 +7701,10 @@ void wxGrid::SetRowSize( int row, int height )
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( !GetBatchCount() )
|
if ( !GetBatchCount() )
|
||||||
|
{
|
||||||
CalcDimensions();
|
CalcDimensions();
|
||||||
|
Refresh();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGrid::SetDefaultColSize( int width, bool resizeExistingCols )
|
void wxGrid::SetDefaultColSize( int width, bool resizeExistingCols )
|
||||||
|
Reference in New Issue
Block a user