Authored by Robert Payne
Committed by GitHub

Merge pull request #377 from game3108/master

bug fix: use greaterThanOrEqualTo or lessThanOrEqualTo to add a attri…
... ... @@ -175,6 +175,7 @@ static char kInstalledConstraintsKey;
NSMutableArray *children = NSMutableArray.new;
for (id attr in attribute) {
MASViewConstraint *viewConstraint = [self copy];
viewConstraint.layoutRelation = relation;
viewConstraint.secondViewAttribute = attr;
[children addObject:viewConstraint];
}
... ...
... ... @@ -53,7 +53,7 @@ SpecBegin(NSLayoutConstraint_MASDebugAdditions)
}];
NSString *description = [NSString stringWithFormat:@"<MASLayoutConstraint:left[0] %@:newView1.left == %@:newView2.left>", MAS_VIEW.class, MAS_VIEW.class];
NSString *description = [NSString stringWithFormat:@"<MASLayoutConstraint:left[0] %@:newView1.left >= %@:newView2.left>", MAS_VIEW.class, MAS_VIEW.class];
expect([superview.constraints[0] description]).to.equal(description);
}
... ...