Permalink
Browse files

Merge pull request #20 from is-frank/master

Bugfix for maphilight on initial hidden Images
  • Loading branch information...
2 parents 9083129 + b040d45 commit 4cdc2e263b8aa0708000e0d98069b47f4bb0b9bf @kemayo committed Mar 19, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery.maphilight.js
View
@@ -298,10 +298,10 @@
area_options = options_from_area(this, options);
if(area_options.alwaysOn) {
if(!canvas_always && has_canvas) {
- canvas_always = create_canvas_for(img.get());
+ canvas_always = create_canvas_for(img[0]);
$(canvas_always).css(canvas_style);
- canvas_always.width = img.width();
- canvas_always.height = img.height();
+ canvas_always.width = img[0].width
+ canvas_always.height = img[0].height
img.before(canvas_always);
}
area_options.fade = area_options.alwaysOnFade; // alwaysOn shouldn't fade in initially

0 comments on commit 4cdc2e2

Please sign in to comment.