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:
parent
400ce8b582
commit
e55d7c1dc3
1 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue