]> git.saurik.com Git - wxWidgets.git/commitdiff
wxWebKit now properly updates after a resize event.
authorKevin Ollivier <kevino@theolliviers.com>
Tue, 25 May 2004 05:54:28 +0000 (05:54 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Tue, 25 May 2004 05:54:28 +0000 (05:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/html/webkit.h
src/html/htmlctrl/webkit/webkit.mm

index 672b6c8840782d9687db2e418856e8a94fa4c34c..c363df714652546c572f77bbaeb3d3747f5a5b3c 100755 (executable)
@@ -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()
 
index 03dd2920a8a18d86d88ff4e2043e550fb0c89c5a..2284be56a89a9de026f707c9483a6ed20e1ee0c1 100755 (executable)
@@ -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