$(window).resize(...); loop
n0ct opened this issue · comments
bZx 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 ?