From: Václav Slavík Date: Mon, 12 Nov 2001 00:13:55 +0000 (+0000) Subject: wxPanel::OnSize must call event.Skip(), otherwise scrollbars won't work in wxUniv X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/28edd9ef206ae06b03ed21c9c769ce408071f673?ds=inline wxPanel::OnSize must call event.Skip(), otherwise scrollbars won't work in wxUniv git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/panelg.cpp b/src/generic/panelg.cpp index 927afc68ff..1b36dff649 100644 --- a/src/generic/panelg.cpp +++ b/src/generic/panelg.cpp @@ -102,11 +102,12 @@ void wxPanel::OnSysColourChanged(wxSysColourChangedEvent& event) wxWindow::OnSysColourChanged(event); } -void wxPanel::OnSize(wxSizeEvent& WXUNUSED(event)) +void wxPanel::OnSize(wxSizeEvent& event) { #if wxUSE_CONSTRAINTS if (GetAutoLayout()) Layout(); #endif // wxUSE_CONSTRAINTS + event.Skip(); }