From 50b365e1e2022a5a1e1e95896a89856dd8280033 Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Wed, 29 Oct 2014 11:45:56 +1300 Subject: [PATCH] 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. --- Snappy/Constraint.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Snappy/Constraint.swift b/Snappy/Constraint.swift index bbb555c..34578a4 100644 --- a/Snappy/Constraint.swift +++ b/Snappy/Constraint.swift @@ -528,9 +528,9 @@ private extension NSLayoutAttribute { } else if self == .Top { return insets.top } else if self == .Right { - return insets.right + return -insets.right } else if self == .Bottom { - return insets.bottom + return -insets.bottom } }