Avoid unnecessarily refreshing native header in wxGrid
We don't need to refresh it after resizing, it takes care of itself and calling Refresh() just results in extra flicker. See #18794.
This commit is contained in:
parent
867cc2a3eb
commit
bf266ca348
@ -9844,7 +9844,10 @@ void wxGrid::DoSetColSize( int col, int width )
|
||||
|
||||
FurtherWindowPartRefresher refreshFurtherPart(x);
|
||||
|
||||
refreshFurtherPart(m_colLabelWin);
|
||||
// Refreshing the native header is unnecessary, as it updates
|
||||
// itself correctly anyhow, and just results in extra flicker.
|
||||
if ( !IsUsingNativeHeader() )
|
||||
refreshFurtherPart(m_colLabelWin);
|
||||
refreshFurtherPart(m_gridWin);
|
||||
|
||||
if ( m_frozenRowGridWin )
|
||||
|
Loading…
Reference in New Issue
Block a user