Fixed: CPWindows contentView Autoresizes Subviews set in Cib is now honoured

Currently when a window is decoded from a cib, the contentView is set to always auto resize its subviews regardless of the setting in IB.
This commit is contained in:
Blair Duncan committed 2013-06-07 07:05:44 -04:00
1 parent 50d3bfd456
commit 2cbc4d93bd
1 file changed
+5 -3
+5 -3
View File
@@ -103,13 +103,15 @@
//[result setHidesOnDeactivate:(_wtFlags&0x80000000)?YES:NO];
[theWindow setTitle:_windowTitle];
// FIXME: we can't autoresize yet...
var contentViewAutoresizesSubviews = [_windowView autoresizesSubviews];
[_windowView setAutoresizesSubviews:NO];
[theWindow setContentView:_windowView];
[_windowView setAutoresizesSubviews:YES];
[[theWindow contentView] setAutoresizesSubviews:contentViewAutoresizesSubviews];
if ([_viewClass isKindOfClass:[CPToolbar class]])
[theWindow setToolbar:_viewClass];