Ticket #14133 (closed defect: fixed)
Calling wxGrid::AutoSize() shows previously hidden rows/columns
| Reported by: | DoltAlya | Owned by: | vadz |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.9.5 |
| Component: | wxGrid | Version: | 2.9.4 |
| Keywords: | wxGrid HideRow ShowRow medium | Cc: | |
| Blocked By: | Patch: | yes | |
| Blocking: |
Description
wxGrid::HideRow/ShowRow?doesn't work. The height of 0 is ignored by SetRowHeight.
Method SetRowHeight() need some corrections:
1) line
if (height < GetRowMinimalAcceptableHeight()) return;
replace with
if ( height>0 && height < GetRowMinimalAcceptableHeight()) return;
2) at the end of method
if ( !GetBatchCount() ) CalcDimensions();
replace with
if ( !GetBatchCount() )
{
CalcDimensions();
Refresh();
}
But this corrections not solving the whole problem. After restoring the height of row is setting to default (15px), not to previous state. That problem threaded to SetColSize() too.

