From 005198fa7d8e244f9c9c28263c8eca5a9ced8e16 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Tue, 25 May 2004 05:54:28 +0000 Subject: [PATCH] wxWebKit now properly updates after a resize event. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/html/webkit.h | 2 +- src/html/htmlctrl/webkit/webkit.mm | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/wx/html/webkit.h b/include/wx/html/webkit.h index 672b6c8840..c363df7146 100755 --- a/include/wx/html/webkit.h +++ b/include/wx/html/webkit.h @@ -67,7 +67,7 @@ public: void SetPageSource(wxString& source, const wxString& baseUrl = wxEmptyString); //we need to resize the webview when the control size changes - //void OnSize(wxSizeEvent &event); + void OnSize(wxSizeEvent &event); protected: DECLARE_EVENT_TABLE() diff --git a/src/html/htmlctrl/webkit/webkit.mm b/src/html/htmlctrl/webkit/webkit.mm index 03dd2920a8..2284be56a8 100755 --- a/src/html/htmlctrl/webkit/webkit.mm +++ b/src/html/htmlctrl/webkit/webkit.mm @@ -42,7 +42,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxWebKitCtrl, wxControl) #endif BEGIN_EVENT_TABLE(wxWebKitCtrl, wxControl) - //EVT_SIZE(wxWebKitCtrl::OnSize) + EVT_SIZE(wxWebKitCtrl::OnSize) END_EVENT_TABLE() // ---------------------------------------------------------------------------- @@ -252,6 +252,10 @@ void wxWebKitCtrl::SetPageSource(wxString& source, const wxString& baseUrl){ } +void wxWebKitCtrl::OnSize(wxSizeEvent &event){ + [m_webView display]; + event.Skip(); +} //------------------------------------------------------------ // Listener interfaces