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:
parent
28eab81fdc
commit
005198fa7d
@ -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()
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user