Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JacoboDB opened this issue Jul 16, 2016 · 1 comment
Open

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

JacoboDB opened this issue Jul 16, 2016 · 1 comment

Comments

@JacoboDB
Copy link

No description provided.

@p4ttch
Copy link

p4ttch commented Mar 30, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants