]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
Updates for Y positioning
[wxWidgets.git] / src / common / wincmn.cpp
index 2f540c96cdfe5215e990460549c5d01a6d3cee1d..26cdbc173e44b7d8ec5c09053fb60becf48f6270 100644 (file)
@@ -401,14 +401,18 @@ void wxWindowBase::Centre(int direction)
     wxRect rect = wxGetClientDisplayRect();
     wxSize size (rect.width,rect.height);
 
+#ifndef __WXMGL__ // FIXME - temporary dirty hack!!
     if (posParent.x >= 0)  // if parent is on the main display
+#endif
     {
         if (xNew < 0)
             xNew = 0;
         else if (xNew+width > size.x)
             xNew = size.x-width-1;
     }
+#ifndef __WXMGL__ // FIXME - temporary dirty hack!!
     if (posParent.y >= 0)  // if parent is on the main display
+#endif
     {
         if (yNew+height > size.y)
             yNew = size.y-height-1;
@@ -1190,9 +1194,6 @@ bool wxWindowBase::Layout()
         GetClientSize(&w, &h);
 
         GetSizer()->SetDimension( 0, 0, w, h );
-#if defined __WXPM__
-        OS2Layout(w, h);
-#endif
     }
     else
     {