seamless-polyfill icon indicating copy to clipboard operation
seamless-polyfill copied to clipboard

Multiple resizes?

Open BitPopCoin opened this issue 9 years ago • 5 comments

It seems you can't do a second resize if you click a link within the frame? The second page also includes the script.

Eg. putting <a href="frame2.html" >Change source of first iframe</a> inside frame.html

BitPopCoin avatar Jan 11 '16 11:01 BitPopCoin

I think you are correct. The parent frame identifies children iframes by their URL (href) and when the child changes the URL, the parent cannot find it anymore.

SimZal avatar Jan 11 '16 11:01 SimZal

Thanks

BitPopCoin avatar Jan 11 '16 11:01 BitPopCoin

The url is being used to keep track of the iframes because I didn't want to require the user to provide anything in the markup they wouldn't require if the seamless attribute was being handled natively.

Your use case is something it should support of course. I'm going to think about how to address it because it makes me start to think about avoiding/debouncing unnecessary reflows, event listeners, and being able to dereference elements.

These things will make this significantly more complicated so I need to finish up writing the tests. I'll get back on that but any ideas with the above are appreciated.

ornj avatar Jan 11 '16 16:01 ornj

Ok thanks, not too big of a deal

BitPopCoin avatar Jan 11 '16 16:01 BitPopCoin

Is there a workaround for this issue? I assume the iframed content can't "tell" the parent, that is needs to re-run, right?

msebel avatar Feb 20 '18 10:02 msebel