From 896610c152dde74488a01acb6a3e5beda6cde04d Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 9 May 2009 13:17:30 +0000 Subject: added a hack to image area select js to work around offset due to border --- vendors/jquery.imgareaselect-0.7.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vendors') 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(); -- cgit v1.2.3