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

Issue #244 iframe not resizing correctly when images are included in … #245

Merged
merged 1 commit into from
Aug 29, 2015

Conversation

mdgbayly
Copy link
Contributor

Added back support for checking each mutation for images. Replaced event listener optimization check on image height/width with check on image.complete flag as height/width seem to be set in IE and Firefox with erroneous values even if not set on the actual image tag. Replaced bind approach for
registering image load event listener with event listener function to avoid registering multiple listeners for same image and also so the listener can be removed. Also added listener for error event so that images which fail to load are handled cleanly.

…e included in dynamically loaded content

Added back support for checking each mutation for images.  Replaced
checked on image height/width with check on image.complete flag as
height/width seem to be set in IE and Firefox with erroneous values,
even if not set on the actual image tag. Replaced bind approach for
registering image load event listener with actual event listener
function to avoid registering multiple listeners for same image and also
so the listener can be removed.  Also added listener for error event so
that images which fail to load are handled cleanly.
@davidjbradshaw
Copy link
Owner

Thank you for this, I'll take a look at it next week when I have a bit more spare time.

davidjbradshaw added a commit that referenced this pull request Aug 28, 2015
davidjbradshaw added a commit that referenced this pull request Aug 29, 2015
Issue #244 iframe not resizing correctly when images are included in …
@davidjbradshaw davidjbradshaw merged commit 8003119 into davidjbradshaw:master Aug 29, 2015
@davidjbradshaw
Copy link
Owner

Released in v3.1.1.

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