stowball / jQuery-rwdImageMaps

Responsive Image Maps jQuery Plugin
http://mattstow.com
MIT License
1.56k stars 709 forks source link

I got NaN in the coords when i close and reopen a bootstrap modal #102

Open JacoboDB opened 8 years ago

p4ttch commented 7 years ago

i had the same issue. i set my image width and height with px; at the end. img src="" width="100px;"

and when i removed it to just a number it fixed the problem and i didnt get NaN in my co-ordinates

I think it's because by adding px it turns the numbers into a string. and the javascript cant do the maths with strings and it becomes a NaN