Don't take hidden wxGrid row/columns into account when auto-sizing.
The contents not shown to the user shouldn't affect the fitting width/height of the columns/rows that are shown. See #15464. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -8398,11 +8398,17 @@ wxGrid::AutoSizeColOrRow(int colOrRow, bool setAsMin, wxGridDirection direction)
|
||||
{
|
||||
if ( column )
|
||||
{
|
||||
if ( !IsRowShown(rowOrCol) )
|
||||
continue;
|
||||
|
||||
row = rowOrCol;
|
||||
col = colOrRow;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( !IsColShown(rowOrCol) )
|
||||
continue;
|
||||
|
||||
row = colOrRow;
|
||||
col = rowOrCol;
|
||||
}
|
||||
|
Reference in New Issue
Block a user