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
This commit is contained in:
@@ -305,13 +305,16 @@ void wxWebKitCtrl::OnSize(wxSizeEvent &event){
|
|||||||
}
|
}
|
||||||
|
|
||||||
//printf("Carbon position x=%d, y=%d\n", GetPosition().x, GetPosition().y);
|
//printf("Carbon position x=%d, y=%d\n", GetPosition().x, GetPosition().y);
|
||||||
|
if (IsShown())
|
||||||
[m_webView display];
|
[m_webView display];
|
||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWebKitCtrl::MacVisibilityChanged(){
|
void wxWebKitCtrl::MacVisibilityChanged(){
|
||||||
bool isHidden = !IsControlVisible( m_peer->GetControlRef());
|
bool isHidden = !IsControlVisible( m_peer->GetControlRef());
|
||||||
|
if (!isHidden)
|
||||||
|
[m_webView display];
|
||||||
|
|
||||||
[m_webView setHidden:isHidden];
|
[m_webView setHidden:isHidden];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user