]> git.saurik.com Git - wxWidgets.git/commitdiff
making sure the repositioning within the contentview only happens if the parent reall...
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 21 Mar 2009 14:32:28 +0000 (14:32 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 21 Mar 2009 14:32:28 +0000 (14:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/window.mm

index f81e0d63b4f7a146c2a3fb0a83598f455a6aa9a3..822bf528c75e50c1e422196cde7dfd482b348013 100644 (file)
@@ -1080,7 +1080,7 @@ void wxWidgetCocoaImpl::Move(int x, int y, int width, int height)
     wxWindowMac* parent = GetWXPeer()->GetParent();
     // under Cocoa we might have a contentView in the wxParent to which we have to 
     // adjust the coordinates
-    if (parent)
+    if (parent && [m_osxView superview] != parent->GetHandle() )
     {
         int cx = 0,cy = 0,cw = 0,ch = 0;
         if ( parent->GetPeer() )