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

Metaboxes: Fix resizing iFrame in Firefox #3122

Merged
merged 1 commit into from
Oct 24, 2017

Conversation

youknowriad
Copy link
Contributor

It looks like Chrome was receiving the right size (widht/height) even when the iframe was closed but Firefox returns the correct dimensions only when the iframe is displayed. So I added a "resize" event handler (triggered when showing/hiding the iframe) to recompute the dimensions at that moment.

@youknowriad youknowriad added the [Type] Bug An existing feature does not function as intended label Oct 24, 2017
@youknowriad youknowriad self-assigned this Oct 24, 2017
Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, confirmed fix in Firefox 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants