aboutsummaryrefslogtreecommitdiff
path: root/vendors/jquery.imgareaselect-0.7.js
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-05-09 13:17:30 +0000
committerCash Costello <cash.costello@gmail.com>2009-05-09 13:17:30 +0000
commit896610c152dde74488a01acb6a3e5beda6cde04d (patch)
treedbb6b654972401f40bc3320be82327cf61d6a40e /vendors/jquery.imgareaselect-0.7.js
parent02b84ae0ddc11385de5495c5f0de056255b2a4be (diff)
downloadelgg-896610c152dde74488a01acb6a3e5beda6cde04d.tar.gz
elgg-896610c152dde74488a01acb6a3e5beda6cde04d.tar.bz2
added a hack to image area select js to work around offset due to border
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();