diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 36bd8dbdc8..44b476ec0a 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -2789,6 +2789,10 @@ void wxGrid::InitPixelFields() m_defaultRowHeight += 4; #endif + // Scroll by row height to avoid showing partial rows when all heights are + // the same. + m_yScrollPixelsPerLine = m_defaultRowHeight; + // Don't change the value when called from OnDPIChanged() later if the // corresponding label window is hidden, these values should remain zeroes // then.