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

Backstretch resize() method doesn't anticipate on unloaded image (ratio) #13

Closed
bytehead opened this issue Apr 18, 2014 · 0 comments
Closed
Labels

Comments

@bytehead
Copy link
Member

At least on iOS6, but probably on more browsers, the resize-event can be triggered before the image has been loaded and/or the ratio of the image is know.

The method already has a try/catch block in place for IE7, but it should also just check for isNaN() on the calculated bgHeight so it can stop further processing in that case.

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

No branches or pull requests

1 participant