]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't use the superview when converting.
authorKevin Ollivier <kevino@theolliviers.com>
Fri, 27 Oct 2006 20:22:09 +0000 (20:22 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Fri, 27 Oct 2006 20:22:09 +0000 (20:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlctrl/webkit/webkit.mm

index 160a02c7805a21bee325374b8b56694cec9ba46b..27a99e79bc8747eaee2f522499135d58fc3ed9f6 100755 (executable)
@@ -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;