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

Resize events only work if iframe in viewport #10

Open
luwes opened this issue Dec 9, 2017 · 2 comments
Open

Resize events only work if iframe in viewport #10

luwes opened this issue Dec 9, 2017 · 2 comments

Comments

@luwes
Copy link
Contributor

luwes commented Dec 9, 2017

The solution of top:-100%; and margin:1px 0 0; does not keep the iframe positioned in a viewable area at all times. If the target element is nested in an element with overflow: hidden and the target element has a negative top margin or a negative absolute positioned top the resize events stop working.

top: 0; z-index: -1 seems to fix the issue but I'm not sure what all the consequences are.

@developit
Copy link
Owner

Possible solution might be to use position:fixed and the z-index? It'll still be clipped, but being in a new stacking context will make it so browsers can't guarantee it's out of viewport.

@luwes
Copy link
Contributor Author

luwes commented Jun 26, 2019

Thanks! Unfortunately we don't use it anymore in the Vimeo player.
A sweet fix if that works though!

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