Update column sizes after updating scrollbars, not before
As UpdateColumnSizes() uses client size, call it after the client size is set correctly after adjusting scrollbars to the new virtual size.
This commit is contained in:
@@ -3078,7 +3078,6 @@ void wxDataViewMainWindow::OnInternalIdle()
|
|||||||
|
|
||||||
if (m_dirty)
|
if (m_dirty)
|
||||||
{
|
{
|
||||||
UpdateColumnSizes();
|
|
||||||
RecalculateDisplay();
|
RecalculateDisplay();
|
||||||
m_dirty = false;
|
m_dirty = false;
|
||||||
}
|
}
|
||||||
@@ -3098,6 +3097,7 @@ void wxDataViewMainWindow::RecalculateDisplay()
|
|||||||
|
|
||||||
SetVirtualSize( width, height );
|
SetVirtualSize( width, height );
|
||||||
GetOwner()->SetScrollRate( 10, m_lineHeight );
|
GetOwner()->SetScrollRate( 10, m_lineHeight );
|
||||||
|
UpdateColumnSizes();
|
||||||
|
|
||||||
Refresh();
|
Refresh();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user