aboutsummaryrefslogtreecommitdiff
path: root/vendors/jquery.imgareaselect-0.7.js
diff options
context:
space:
mode:
Diffstat (limited to 'vendors/jquery.imgareaselect-0.7.js')
-rw-r--r--vendors/jquery.imgareaselect-0.7.js4
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();