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

put an ifame in the screen space #8

Open
bucktechnologies opened this issue Dec 12, 2018 · 3 comments
Open

put an ifame in the screen space #8

bucktechnologies opened this issue Dec 12, 2018 · 3 comments

Comments

@bucktechnologies
Copy link

i want to know if i could put an iframe to call another webpage in the screen space

@TerrePorter
Copy link

@bucktechnologies I was curious of the same thing, so i made a test page. Only need to replace the scrollbar with something else, but other than that it worked fine.

https://codepen.io/terreporter/full/zXBdvM

@mckeever02
Copy link

mckeever02 commented Sep 22, 2020

This works fine in Firefox and Chrome but in Safari the content within the iframe gets positioned outside of the device frame over to the left. It's a weird bug.

I'll update here if I find a solution.

UPDATE: Pretty easy fix. Wrap the iframe in a div and add the device-content class to it. You'll also want to add overflow: hidden.

@Ohfalderal
Copy link

device-content has been deprecated. Use device-screen.

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

No branches or pull requests

4 participants