]> git.saurik.com Git - wxWidgets.git/commitdiff
eliminate the hysteresis when scrollbars didn't disappear when the window was resized...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Sep 2008 17:36:57 +0000 (17:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Sep 2008 17:36:57 +0000 (17:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/scrolwin.h

index 860c65d559bc0f81d9c964dbdc98187fecfe6736..006a4d6ca330d205889e49c2a72cfadc5f747074 100644 (file)
@@ -219,6 +219,18 @@ protected:
                          int& scrollUnits,
                          int& scrollPosition);
 
+    // this function should be overridden to return the size available for
+    // m_targetWindow inside m_win of the given size
+    //
+    // the default implementation is only good for m_targetWindow == m_win
+    // case, if we're scrolling a subwindow you must override this method
+    virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size)
+    {
+        wxASSERT_MSG( m_targetWindow == m_win, "must be overridden" );
+
+        return size;
+    }
+
 
     double                m_scaleX;
     double                m_scaleY;
@@ -248,18 +260,6 @@ protected:
 
     wxScrollHelperEvtHandler *m_handler;
 
-private:
-    // this function should be overridden to return the size available for
-    // m_targetWindow inside m_win of the given size
-    //
-    // the default implementation is only good for m_targetWindow == m_win
-    // case, if we're scrolling a subwindow you must override this method
-    virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size)
-    {
-        wxASSERT_MSG( m_targetWindow == m_win, "must be overridden" );
-
-        return size;
-    }
 
     DECLARE_NO_COPY_CLASS(wxScrollHelper)
 };