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:
@@ -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
|
||||
|
Reference in New Issue
Block a user