Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes a small bug with OS X Autolayout (Thanks to Owen Hildreth)

Fixes a small  bug in the DMInspectorPalette that was keeping the subviews/DMPaletteSectionViews from resizing when autolayout is used.
Thanks to Owen Hildreth
  • Loading branch information...
commit 0090523320b1405bc91d2233f37635082d1da5dd 1 parent 1547ea9
@malcommac malcommac authored
View
1  .gitignore
@@ -0,0 +1 @@
+.DS_Store
View
BIN  ...project.xcworkspace/xcuserdata/danielemargutti.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown
View
7 DMInspectorPalette/core/DMPaletteContainer.m
@@ -88,6 +88,13 @@ - (CGRect) boundsForContent {
return frame;
}
+-(void) layout {
+ [super layout];
+ // Fixes a small bug in the DMInspectorPalette that was keeping the subviews/DMPaletteSectionViews from resizing when autolayout is used.
+ // Thanks to Owen Hildreth
+ [self layoutSubviews];
+}
+
- (void)layoutSubviews {
NSSortDescriptor *sortDescriptor = [NSSortDescriptor sortDescriptorWithKey:@"index" ascending:YES];
contentSectionViews = [contentSectionViews sortedArrayUsingDescriptors:[NSArray arrayWithObject:sortDescriptor]];
Please sign in to comment.
Something went wrong with that request. Please try again.