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

Experiment with some more ways to render bars in non-fixed way #3

Open
nickschot opened this issue Mar 14, 2018 · 2 comments
Open

Experiment with some more ways to render bars in non-fixed way #3

nickschot opened this issue Mar 14, 2018 · 2 comments

Comments

@nickschot
Copy link
Owner

nickschot commented Mar 14, 2018

Below is a bar variant which seems to work without glitches in mobile Chrome. More thought on the implications of a position fixed wrapper div is needed.

<div style="position: fixed; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden">
  <div style="height: 50px; background: red;"></div>
  <div style="height: calc(100% - 100px); background: grey; overflow-y: auto;">
    <div style="height: 300vh; width: 20vw; margin-left: 20vh; background: green;">
      Test
    </div>
  </div>
  <div style="height: 50px; width: 100%;background: yellow;"></div>
</div>
@nickschot
Copy link
Owner Author

This approach does fully disable the hiding address bar in mobile chrome.

@nickschot
Copy link
Owner Author

This might also have implications for hiding a bar.

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

1 participant