]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/window.mm
More doxygen overview updates.
[wxWidgets.git] / src / cocoa / window.mm
index bb25bcc3337e51c489e6c18524ca4a28ffc4f23d..fecbd8ac706551d634d0124b58f9adb7d7bdca52 100644 (file)
@@ -903,7 +903,14 @@ void wxWindowCocoaScrollView::Cocoa_FrameChanged(void)
     wxSizeEvent event(m_owner->GetSize(), m_owner->GetId());
     event.SetEventObject(m_owner);
     m_owner->HandleWindowEvent(event);
-    UpdateSizes();
+
+    /*  If the view is not a native one then it's being managed by wx.  In this case the control
+        may decide to change its virtual size and we must update the document view's size to
+        match.  For native views the virtual size will never have been set so we do not want
+        to use it at all.
+     */
+    if(!m_isNativeView)
+        UpdateSizes();
 }
 
 // ========================================================================