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

Resizing does not work when the host page uses jQuery and iframeResizer.js included to the host page repeatedly #438

Closed
dshiryaev-plesk opened this issue Dec 12, 2016 · 1 comment

Comments

@dshiryaev-plesk
Copy link

Version

3.5.5

Precondition

  • the host page has jQuery loaded
  • the host page have two iframes with content that changes its height dynamically
  • every of the iframes do the following:
    • includes iframeResizer.contentWindow.js
    • adds script iframeResizer.js to the host page
    • adds the following call to initialize itself to a script in the host page's body: jQuery('#' + window.frameElement.id).iFrameResize()

Steps to reproduce

  • open host page
  • change the height of content of any iframe

Expected result

The height of the iframe has changed

Actual result

  • The height of the iframe is NOT has changed
  • browser's console has messages like the following:
    Sending message to host page (iframe-43993:1921:568:mutationObserver)
    Ignored: iframe-43993:1921:568:mutationObserver

Help to fix

iframeResizer.js: 982

@davidjbradshaw
Copy link
Owner

davidjbradshaw commented Dec 12, 2016

If you want to create a patch that checks if the jQuery plugin is already loaded, before adding it. Then happy to take the PR.

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

No branches or pull requests

2 participants