Scroll by entire rows in wxGrid when they have uniform heights

Set vertical scroll line size to the default row height.

See #23032.
This commit is contained in:
DjPasco 2023-02-02 17:23:36 +02:00 committed by Vadim Zeitlin
parent 400ce8b582
commit e55d7c1dc3

View file

@ -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.