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:
@@ -9844,7 +9844,10 @@ void wxGrid::DoSetColSize( int col, int width )
|
|||||||
|
|
||||||
FurtherWindowPartRefresher refreshFurtherPart(x);
|
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);
|
refreshFurtherPart(m_gridWin);
|
||||||
|
|
||||||
if ( m_frozenRowGridWin )
|
if ( m_frozenRowGridWin )
|
||||||
|
Reference in New Issue
Block a user