Skip to content

Commit cc7d2eb

Browse files
committed
fix MASLayoutGuide constant with value issue
1 parent 320cc21 commit cc7d2eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Masonry/MASViewConstraint.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ - (void)setSecondViewAttribute:(id)secondViewAttribute {
139139
if ([self.firstViewAttribute.item isKindOfClass:MASLayoutGuide.class]) {
140140
_secondViewAttribute = [[MASViewAttribute alloc] initWithView:self.firstViewAttribute.view
141141
layoutAttribute:self.firstViewAttribute.layoutAttribute];
142-
} else {
143-
[self setLayoutConstantWithValue:secondViewAttribute];
144142
}
143+
144+
[self setLayoutConstantWithValue:secondViewAttribute];
145145
} else if ([secondViewAttribute isKindOfClass:MAS_VIEW.class]) {
146146
_secondViewAttribute = [[MASViewAttribute alloc] initWithView:secondViewAttribute layoutAttribute:self.firstViewAttribute.layoutAttribute];
147147
} else if ([secondViewAttribute isKindOfClass:MASViewAttribute.class]) {

0 commit comments

Comments
 (0)