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

Checking the element has a background #4

Open
joelpittet opened this issue Jul 17, 2012 · 4 comments
Open

Checking the element has a background #4

joelpittet opened this issue Jul 17, 2012 · 4 comments

Comments

@joelpittet
Copy link

Just noticed with a generic class selector on elements that may or may not have a bg it bombs hard with IE8 on line 184

    imgRatio = imgDim.width / imgDim.height,

Error: width doesn't exist.

Great script btw.

@cheshire137
Copy link

Yep, I'm hitting this, too:

SCRIPT5007: Unable to get value of the property 'width': object is null or undefined
jquery.backgroundSize.js, line 184 character 3

@graygilmore
Copy link

I was wondering why that was occurring, seeing it as well.

@yuka123
Copy link

yuka123 commented Nov 6, 2012

How is possible to fix this?

@louisremi
Copy link
Owner

Thanks for reporting the problem, I'll investigate

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

5 participants