From: Kevin Ollivier Date: Mon, 24 Jan 2005 06:53:59 +0000 (+0000) Subject: Fixing notebook 'flashing' bug where the WebView would flash while not visible. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fe3fc02e1c64cfaeef4549617aab00fcc257f1e8 Fixing notebook 'flashing' bug where the WebView would flash while not visible. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/html/htmlctrl/webkit/webkit.mm b/src/html/htmlctrl/webkit/webkit.mm index eb667927ca..588e18696d 100755 --- a/src/html/htmlctrl/webkit/webkit.mm +++ b/src/html/htmlctrl/webkit/webkit.mm @@ -305,13 +305,16 @@ void wxWebKitCtrl::OnSize(wxSizeEvent &event){ } //printf("Carbon position x=%d, y=%d\n", GetPosition().x, GetPosition().y); - - [m_webView display]; + if (IsShown()) + [m_webView display]; event.Skip(); } void wxWebKitCtrl::MacVisibilityChanged(){ bool isHidden = !IsControlVisible( m_peer->GetControlRef()); + if (!isHidden) + [m_webView display]; + [m_webView setHidden:isHidden]; }