From: Vadim Zeitlin Date: Tue, 17 Jul 2001 22:01:00 +0000 (+0000) Subject: blind fix for wxScrolledWindow problem X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2feed0044e8c8c99667da7bf8ecca52c4c707c05?ds=sidebyside blind fix for wxScrolledWindow problem git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp index 862172c559..e3149ab601 100644 --- a/src/generic/scrlwing.cpp +++ b/src/generic/scrlwing.cpp @@ -168,16 +168,15 @@ void wxAutoScrollTimer::Notify() bool wxScrollHelperEvtHandler::ProcessEvent(wxEvent& event) { wxEventType evType = event.GetEventType(); - - if ( evType == wxEVT_SIZE ) // Don't let wxPanel catch the size events. RR. + + if ( evType == wxEVT_SIZE ) { m_scrollHelper->HandleOnSize((wxSizeEvent &)event); - return TRUE; } - + if ( wxEvtHandler::ProcessEvent(event) ) return TRUE; - + // reset the skipped flag to FALSE as it might have been set to TRUE in // ProcessEvent() above event.Skip(FALSE);