]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/nonownedwnd_osx.cpp
Add wxRTTI macros for the wxSimpleHtmlListBox class
[wxWidgets.git] / src / osx / nonownedwnd_osx.cpp
index 5ed6cdf443f20a6dd00b680b59d0af5ac01ae9ec..e2543dff277eb3a9579cabba74ac094da9bbdc99 100644 (file)
@@ -467,8 +467,15 @@ void wxNonOwnedWindow::DoGetClientSize( int *width, int *height ) const
         return;
 
     int left, top, w, h;
         return;
 
     int left, top, w, h;
+    // under iphone with a translucent status bar the m_nowpeer returns the
+    // inner area, while the content area extends under the translucent
+    // status bar, therefore we use the content view's area
+#ifdef __WXOSX_IPHONE__
+    m_peer->GetContentArea(left, top, w, h);
+#else
     m_nowpeer->GetContentArea(left, top, w, h);
     m_nowpeer->GetContentArea(left, top, w, h);
-
+#endif
+    
     if (width)
        *width = w ;
     if (height)
     if (width)
        *width = w ;
     if (height)