lib/teacup/calculations.rb in teacup-2.1.13 vs lib/teacup/calculations.rb in teacup-2.1.14

- old
+ new

@@ -8,12 +8,12 @@ offset = amount.slice(location+1, amount.size).gsub(' ', '').to_f percent = amount.slice(0, location).to_f / 100.0 case dimension when :width - view.superview.bounds.size.width * percent + offset + view.superview.frame.size.width * percent + offset when :height - view.superview.bounds.size.height * percent + offset + view.superview.frame.size.height * percent + offset else raise "Unknown dimension #{dimension}" end else amount