diff options
-rw-r--r-- | vendors/jquery.imgareaselect-0.7.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendors/jquery.imgareaselect-0.7.js b/vendors/jquery.imgareaselect-0.7.js index a60edf79b..781e73949 100644 --- a/vendors/jquery.imgareaselect-0.7.js +++ b/vendors/jquery.imgareaselect-0.7.js @@ -76,8 +76,8 @@ jQuery.imgAreaSelect.init = function (img, options) { function adjust() { imgOfs = $img.offset(); - imgOfs.left = parseInt(imgOfs.left); - imgOfs.top = parseInt(imgOfs.top); + imgOfs.left = parseInt(imgOfs.left) + parseInt($img.css("border-left-width")) + parseInt($img.css("padding-left")); + imgOfs.top = parseInt(imgOfs.top) + parseInt($img.css("border-top-width")) + parseInt($img.css("padding-top")); imgWidth = $img.width(); imgHeight = $img.height(); |