From e9e9c66fd2e8a14cbc4260d4d8bf6d94001d8eee Mon Sep 17 00:00:00 2001 From: Bart Gloudemans Date: Wed, 28 May 2014 16:26:11 +0200 Subject: [PATCH] Replaced shorthand css() getters with non-shorthand equivalent. Caused false readings in Firefox 29.0.1 --- jrac/jquery.jrac.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jrac/jquery.jrac.js b/jrac/jquery.jrac.js index eed1faf..dd7baa5 100644 --- a/jrac/jquery.jrac.js +++ b/jrac/jquery.jrac.js @@ -259,8 +259,8 @@ // Does the crop is completely inside the image? crop_consistent: function() { return this.crop_position_x()>=0 && this.crop_position_y()>=0 - && this.crop_position_x() + $crop.width() + parseInt($crop.css('border-width'),10)*2 <=$image.width() - && this.crop_position_y() + $crop.height() + parseInt($crop.css('border-width'),10)*2 <=$image.height(); + && this.crop_position_x() + $crop.width() + parseInt($crop.css('border-left-width'),10) + parseInt($crop.css('border-right-width'),10) <=$image.width() + && this.crop_position_y() + $crop.height() + parseInt($crop.css('border-top-width'),10) + parseInt($crop.css('border-bottom-width'),10) <=$image.height(); }, // Set a property (which his name is one of the event) with a given // value then notify this operation