some extra refreshing and updating on wxMac so the grid renders itself correctly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-04-21 19:53:51 +00:00
parent c26337bcb1
commit 7d75e6c6cf
2 changed files with 16 additions and 0 deletions

View File

@@ -7788,6 +7788,10 @@ void wxGrid::HideCellEditControl()
wxRect rect( CellToRect(row, col) );
CalcScrolledPosition(rect.x, rect.y, &rect.x, &rect.y );
rect.width = m_gridWin->GetClientSize().GetWidth() - rect.x;
#ifdef __WXMAC__
// ensure that the pixels under the focus ring get refreshed as well
rect.Inflate(10,10);
#endif
m_gridWin->Refresh( false, &rect );
}
}