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

Allow scrolling a sandbox in Safari #102

Closed
Haroenv opened this issue Aug 10, 2017 · 5 comments
Closed

Allow scrolling a sandbox in Safari #102

Haroenv opened this issue Aug 10, 2017 · 5 comments

Comments

@Haroenv
Copy link
Contributor

Haroenv commented Aug 10, 2017

When making bigger things, it's useful to be able to scroll. I think somewhere in the styles iframe { overflow: hidden;} is specified, which will disable someone from scrolling through a code sandbox.

An example is: https://codesandbox.io/s/7LD7EJ14r

@CompuIves
Copy link
Member

CompuIves commented Aug 10, 2017 via email

@Haroenv
Copy link
Contributor Author

Haroenv commented Aug 10, 2017

Safari Technology Preview Release 36 (Safari 11.0, WebKit 12604.1.32.0.1), just checked and it's possible to scroll in Chrome

@Haroenv Haroenv changed the title Allow scrolling a sandbox Allow scrolling a sandbox in Safari Aug 10, 2017
@Haroenv
Copy link
Contributor Author

Haroenv commented Aug 14, 2017

Found a workaround, by adding this css inside the <iframe>:

html {
  height: 100%;
}

body {
  height: 100%;
  overflow: auto;
}

Not exactly sure why it's needed, and where I should add it though

@Haroenv
Copy link
Contributor Author

Haroenv commented Aug 14, 2017

I just realised that this is a bug in Safari Technology Preview and will probably be fixed at the next release. It's not present in the main version, and we can also see this bug on codepen. Let's close this as out of scope for now.

@Haroenv Haroenv closed this as completed Aug 14, 2017
@Haroenv
Copy link
Contributor Author

Haroenv commented Aug 19, 2017

This magically became fixed a few days ago. 🆒

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

2 participants