Sfoglia il codice sorgente

bug fix: use greaterThanOrEqualTo or lessThanOrEqualTo to add a attribute array will set the MASViewConstraint layoutRelation NSLayoutRelationEqual

game3108 9 anni fa
parent
commit
43c357a8d4
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      Masonry/MASViewConstraint.m

+ 1 - 0
Masonry/MASViewConstraint.m

@@ -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];
             }