]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixing notebook 'flashing' bug where the WebView would flash while not visible.
authorKevin Ollivier <kevino@theolliviers.com>
Mon, 24 Jan 2005 06:53:59 +0000 (06:53 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Mon, 24 Jan 2005 06:53:59 +0000 (06:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlctrl/webkit/webkit.mm

index eb667927ca4f1124b100f80cad06b52959c28cec..588e18696da22aee84310b781cfd39e3dcce0e26 100755 (executable)
@@ -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];
 }