]> git.saurik.com Git - wxWidgets.git/commitdiff
reverting content area calculation for iphone as translucent status bars get ignored...
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 7 Dec 2010 08:53:11 +0000 (08:53 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 7 Dec 2010 08:53:11 +0000 (08:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/nonownedwnd_osx.cpp

index 5ed6cdf443f20a6dd00b680b59d0af5ac01ae9ec..15b275ef6f1082d15bcf616e1440a00d00ee3c83 100644 (file)
@@ -467,8 +467,13 @@ void wxNonOwnedWindow::DoGetClientSize( int *width, int *height ) const
         return;
 
     int left, top, w, h;
+    // perhaps we should do this for all ?
+#ifdef __WXOSX_IPHONE__
+    m_peer->GetContentArea(left, top, w, h);
+#else
     m_nowpeer->GetContentArea(left, top, w, h);
-
+#endif
+    
     if (width)
        *width = w ;
     if (height)