mirror of https://github.com/SnapKit/SnapKit
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:
parent
0f860a014a
commit
50b365e1e2
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue