Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Changed imagemap padding/border addition rounding to ceil rather than…
Browse files Browse the repository at this point in the history
… floor
  • Loading branch information
Craga89 committed Nov 30, 2010
1 parent e77e8fe commit f879b6c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.qtip.css
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Tue Nov 30 03:47:08 2010 +0000
* Date: Tue Nov 30 03:53:34 2010 +0000
*/

.ui-tooltip-accessible{
Expand Down
6 changes: 3 additions & 3 deletions dist/jquery.qtip.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Tue Nov 30 03:47:08 2010 +0000
* Date: Tue Nov 30 03:53:34 2010 +0000
*/

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
Expand Down Expand Up @@ -2241,8 +2241,8 @@ $.extend(TRUE, $.fn.qtip.defaults, {
}

// Make sure we account for padding and borders on the image
imageOffset.left += Math.floor((image.outerWidth() - image.width()) / 2);
imageOffset.top += Math.floor((image.outerHeight() - image.height()) / 2);
imageOffset.left += Math.ceil((image.outerWidth() - image.width()) / 2);
imageOffset.top += Math.ceil((image.outerHeight() - image.height()) / 2);

// Parse coordinates into proper array
if(shape === 'poly') {
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/jquery.qtip.pack.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/imagemap.js
Expand Up @@ -58,8 +58,8 @@ $.fn.qtip.plugins.imagemap = function(area, corner)
}

// Make sure we account for padding and borders on the image
imageOffset.left += Math.floor((image.outerWidth() - image.width()) / 2);
imageOffset.top += Math.floor((image.outerHeight() - image.height()) / 2);
imageOffset.left += Math.ceil((image.outerWidth() - image.width()) / 2);
imageOffset.top += Math.ceil((image.outerHeight() - image.height()) / 2);

// Parse coordinates into proper array
if(shape === 'poly') {
Expand Down

0 comments on commit f879b6c

Please sign in to comment.