Fix issues when using edge insets in an equalTo

The right/bottom edge needed to be inverted to apply a propery "EdgeInsets" rather than "EdgeOffsets" behavior.
This commit is contained in:
Robert Payne 2014-10-29 11:45:56 +13:00
parent 0f860a014a
commit 50b365e1e2
1 changed files with 2 additions and 2 deletions

View File

@ -528,9 +528,9 @@ private extension NSLayoutAttribute {
} else if self == .Top { } else if self == .Top {
return insets.top return insets.top
} else if self == .Right { } else if self == .Right {
return insets.right return -insets.right
} else if self == .Bottom { } else if self == .Bottom {
return insets.bottom return -insets.bottom
} }
} }