]> git.saurik.com Git - wxWidgets.git/commitdiff
better variant support, fixes #11114
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 18 Aug 2009 15:39:53 +0000 (15:39 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 18 Aug 2009 15:39:53 +0000 (15:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/window.mm

index 6dd32c83ae231f2bf56ac58f011c77cdeb31b23c..1e7bfd251b2e94e5edb0f89b4af9b8ed3415e4fa 100644 (file)
@@ -1509,6 +1509,12 @@ void wxWidgetCocoaImpl::SetControlSize( wxWindowVariant variant )
     }
     if ( [m_osxView respondsToSelector:@selector(setControlSize:)] )
         [m_osxView setControlSize:size];
+    else if ([m_osxView respondsToSelector:@selector(cell)]) 
+       { 
+               id cell = [(id)m_osxView cell]; 
+               if ([cell respondsToSelector:@selector(setControlSize:)]) 
+                       [cell setControlSize:size]; 
+       } 
 }
 
 void wxWidgetCocoaImpl::SetFont(wxFont const& font, wxColour const&, long, bool)