lib/motion-kit-cocoa/constraints/constraint.rb in motion-kit-0.12.0 vs lib/motion-kit-cocoa/constraints/constraint.rb in motion-kit-0.13.0
- old
+ new
@@ -728,10 +728,12 @@
self
end
def update_constraint
if @resolved
- @resolved.each do
+ [0, 1].each do |index|
+ constraint = @resolved[index]
+ constraint.constant = self.constant[index]
end
end
end
def resolve_all(layout, view)