X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/448f8f12b9db091bafd27ed8a13829dd850d7bb7..d5a0a2bcf856f97702d5f8469e6e2b925ed93dfa:/src/html/htmlctrl/webkit/webkit.mm diff --git a/src/html/htmlctrl/webkit/webkit.mm b/src/html/htmlctrl/webkit/webkit.mm index 160a02c780..27a99e79bc 100755 --- a/src/html/htmlctrl/webkit/webkit.mm +++ b/src/html/htmlctrl/webkit/webkit.mm @@ -544,7 +544,7 @@ void wxWebKitCtrl::OnSize(wxSizeEvent &event){ // and this tripped me up at first. But in fact, what we want is the root view, because we need to // make the y origin relative to the very top of the window, not its contents, since we later flip // the y coordinate for Cocoa. - HIViewConvertRect (&rect, HIViewGetSuperview( m_peer->GetControlRef() ), + HIViewConvertRect (&rect, m_peer->GetControlRef(), HIViewGetRoot( (WindowRef) MacGetTopLevelWindowRef() ) ); x = (int)rect.origin.x;