Take DPI scaling into account for wxDataViewCtrl scroll rate
Use FromDIP() to make scrolling work visually the same in high DPI as in normal one.
This commit is contained in:
@@ -3387,7 +3387,7 @@ void wxDataViewMainWindow::RecalculateDisplay()
|
|||||||
int height = GetLineStart( GetRowCount() );
|
int height = GetLineStart( GetRowCount() );
|
||||||
|
|
||||||
SetVirtualSize( width, height );
|
SetVirtualSize( width, height );
|
||||||
GetOwner()->SetScrollRate( 10, m_lineHeight );
|
GetOwner()->SetScrollRate( FromDIP(10), m_lineHeight );
|
||||||
UpdateColumnSizes();
|
UpdateColumnSizes();
|
||||||
|
|
||||||
Refresh();
|
Refresh();
|
||||||
|
|||||||
Reference in New Issue
Block a user