File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,11 @@ - (BOOL)hasBeenInstalled {
137
137
- (void )setSecondViewAttribute : (id )secondViewAttribute {
138
138
if ([secondViewAttribute isKindOfClass: NSValue .class]) {
139
139
if ([self .firstViewAttribute.item isKindOfClass: MASLayoutGuide.class]) {
140
- _secondViewAttribute = [[MASViewAttribute alloc ] initWithView: self .firstViewAttribute.view
141
- layoutAttribute: self .firstViewAttribute.layoutAttribute];
140
+ NSLayoutAttribute layoutAttribute = self.firstViewAttribute .layoutAttribute ;
141
+ if (layoutAttribute != NSLayoutAttributeWidth && layoutAttribute != NSLayoutAttributeHeight) {
142
+ _secondViewAttribute = [[MASViewAttribute alloc ] initWithView: self .firstViewAttribute.view
143
+ layoutAttribute: layoutAttribute];
144
+ }
142
145
}
143
146
144
147
[self setLayoutConstantWithValue: secondViewAttribute];
You can’t perform that action at this time.
0 commit comments