Fix edges to edges for macOS

This commit is contained in:
Robert Payne 2016-09-20 16:57:16 +12:00
parent bea480a8d1
commit 46c02e3cc9
1 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,9 @@ public class Constraint {
layoutToAttribute = layoutFromAttribute
}
#else
if layoutToAttributes.count > 0 {
if self.from.attributes == self.to.attributes {
layoutToAttribute = layoutFromAttribute
} else if layoutToAttributes.count > 0 {
layoutToAttribute = layoutToAttributes[0]
} else {
layoutToAttribute = layoutFromAttribute