stowball / jQuery-rwdImageMaps

Responsive Image Maps jQuery Plugin

Home Page:http://mattstow.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$(window).resize(...); loop

n0ct opened this issue · comments

commented

Hello,

Maybe it's not an issue in rwdImageMaps but I can't find an answer to my problem:

On document load I use the following code to properly resize my image map. This works fine.

$('img[usemap]').rwdImageMaps();

If I resize my windows after the document load, the area will be at a bad place so I would like to do something like:

$(window).resize(function(){
     $('img[usemap]').rwdImageMaps();
});

But "rwdImageMaps();" function seems to resize the windows so it makes a loop. And rwdImageMaps doesn't handle ".done(function(){...});" so how could I avoid that resize loop ?

I am also experiencing this same issue.

@n0ct you closed the issue. Did you find another way to fix it?
@stowball this is a valid issue. Will you consider any fix for it?