git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27423
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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()
#endif
BEGIN_EVENT_TABLE(wxWebKitCtrl, wxControl)
- //EVT_SIZE(wxWebKitCtrl::OnSize)
+ EVT_SIZE(wxWebKitCtrl::OnSize)
END_EVENT_TABLE()
// ----------------------------------------------------------------------------
}
+void wxWebKitCtrl::OnSize(wxSizeEvent &event){
+ [m_webView display];
+ event.Skip();
+}
//------------------------------------------------------------
// Listener interfaces