Added scrollbar hysteresis detection to stop infinite looping when vertical scrollbar presence or absence affects the content height.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2013-12-10 15:24:35 +00:00
parent 79ec1e6c30
commit 87ba46f05e
2 changed files with 43 additions and 4 deletions

View File

@@ -1926,7 +1926,7 @@ public:
/**
A helper function setting up scrollbars, for example after a resize.
*/
virtual void SetupScrollbars(bool atTop = false);
virtual void SetupScrollbars(bool atTop = false, bool fromOnPaint = false);
/**
Helper function implementing keyboard navigation.
@@ -2316,6 +2316,11 @@ protected:
/// An overall scale factor
double m_scale;
/// Variables for scrollbar hysteresis detection
wxSize m_lastWindowSize;
int m_setupScrollbarsCount;
int m_setupScrollbarsCountInOnSize;
};
#if wxUSE_DRAG_AND_DROP