a workaround for Mac update problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -164,8 +164,8 @@ void wxVScrolledWindow::SetLineCount(size_t count)
|
||||
count/2 + NUM_LINES_TO_SAMPLE/2);
|
||||
|
||||
// use the height of the lines we looked as the average
|
||||
m_heightTotal = ((float)m_heightTotal / (3*NUM_LINES_TO_SAMPLE)) *
|
||||
m_lineMax;
|
||||
m_heightTotal = (wxCoord)
|
||||
(((float)m_heightTotal / (3*NUM_LINES_TO_SAMPLE)) * m_lineMax);
|
||||
}
|
||||
|
||||
|
||||
@@ -354,5 +354,9 @@ void wxVScrolledWindow::OnScroll(wxScrollWinEvent& event)
|
||||
}
|
||||
|
||||
ScrollToLine(lineFirstNew);
|
||||
|
||||
#ifdef __WXMAC__
|
||||
Update();
|
||||
#endif // __WXMAC__
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user