Don't use the superview when converting.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
// 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
|
// make the y origin relative to the very top of the window, not its contents, since we later flip
|
||||||
// the y coordinate for Cocoa.
|
// the y coordinate for Cocoa.
|
||||||
HIViewConvertRect (&rect, HIViewGetSuperview( m_peer->GetControlRef() ),
|
HIViewConvertRect (&rect, m_peer->GetControlRef(),
|
||||||
HIViewGetRoot( (WindowRef) MacGetTopLevelWindowRef() ) );
|
HIViewGetRoot( (WindowRef) MacGetTopLevelWindowRef() ) );
|
||||||
|
|
||||||
x = (int)rect.origin.x;
|
x = (int)rect.origin.x;
|
||||||
|
Reference in New Issue
Block a user