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
This commit is contained in:
Kevin Ollivier
2004-05-25 05:54:28 +00:00
parent 28eab81fdc
commit 005198fa7d
2 changed files with 6 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ public:
void SetPageSource(wxString& source, const wxString& baseUrl = wxEmptyString); void SetPageSource(wxString& source, const wxString& baseUrl = wxEmptyString);
//we need to resize the webview when the control size changes //we need to resize the webview when the control size changes
//void OnSize(wxSizeEvent &event); void OnSize(wxSizeEvent &event);
protected: protected:
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()

View File

@@ -42,7 +42,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxWebKitCtrl, wxControl)
#endif #endif
BEGIN_EVENT_TABLE(wxWebKitCtrl, wxControl) BEGIN_EVENT_TABLE(wxWebKitCtrl, wxControl)
//EVT_SIZE(wxWebKitCtrl::OnSize) EVT_SIZE(wxWebKitCtrl::OnSize)
END_EVENT_TABLE() 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 // Listener interfaces