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

Visibility check #73

Merged
merged 2 commits into from
Mar 16, 2015
Merged

Visibility check #73

merged 2 commits into from
Mar 16, 2015

Conversation

michaldudak
Copy link
Contributor

If an image is hidden (e.g. inside a container with display: none), calling getBoundingClientRect() on it will always return null. I added a function that checks if the image is visible (based on http://stackoverflow.com/questions/19669786/check-if-element-is-visible-in-dom).

jonathan-fielding added a commit that referenced this pull request Mar 16, 2015
@jonathan-fielding jonathan-fielding merged commit d5d320f into toddmotto:master Mar 16, 2015
@jonathan-fielding
Copy link
Collaborator

Thanks for the pull request, merging now

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

Successfully merging this pull request may close these issues.

None yet

2 participants