correcting DoGetPosition for windows with borders
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1213,10 +1213,14 @@ void wxWindowMac::DoGetPosition(int *x, int *y) const
|
||||
{
|
||||
Rect bounds ;
|
||||
m_peer->GetRect( &bounds ) ;
|
||||
|
||||
|
||||
int x1 = bounds.left ;
|
||||
int y1 = bounds.top ;
|
||||
|
||||
// get the wx window position from the native one
|
||||
x1 -= MacGetLeftBorderSize() ;
|
||||
y1 -= MacGetTopBorderSize() ;
|
||||
|
||||
if ( !IsTopLevel() )
|
||||
{
|
||||
wxWindow *parent = GetParent();
|
||||
|
Reference in New Issue
Block a user