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

Useless scrollbar on ipad #60

Open
hakimio opened this issue Oct 12, 2018 · 6 comments
Open

Useless scrollbar on ipad #60

hakimio opened this issue Oct 12, 2018 · 6 comments
Labels
bug Something isn't working

Comments

@hakimio
Copy link

hakimio commented Oct 12, 2018

To reproduce:

  • Choose device emulation from Chrome developer tools
  • Select ipad

You'll see that there is useless scrollbar in "home" page.

EDIT: it seems to be caused by the navigation menu in "outer toolbar" layout.

@nightskylark nightskylark added the bug Something isn't working label Oct 15, 2018
@ovchinnikov
Copy link
Contributor

The min-height property of dxScrollable content is set to 101%. That is why you see a scrollbar in the iOS simulator. It's necessary to prevent whole page bounce behavior on iPad and iPhone.

@hakimio
Copy link
Author

hakimio commented Oct 23, 2018

@ovchinnikov Why doesn't it happen when "inner toolbar" layout is used then?

@ovchinnikov
Copy link
Contributor

I have the same behavior on my side with the "inner toolbar" layout
inner

@hakimio
Copy link
Author

hakimio commented Oct 31, 2018

The min-height property of dxScrollable content is set to 101%. That is why you see a scrollbar in the iOS simulator. It's necessary to prevent whole page bounce behavior on iPad and iPhone.

A simpler way to prevent the whole page bounce would be to set overflow: hidden on the html element:

html {
    overflow: hidden;
}

EDIT: is this already fixed in DevExpress/DevExtreme#5979 ?

@ovchinnikov
Copy link
Contributor

Your solution doesn't work for me. Please check this example on a real iOS device: https://qly5o168pq.codesandbox.io/

@hakimio
Copy link
Author

hakimio commented Nov 1, 2018

@ovchinnikov You are right. Unfortunately overflow: hidden solution disables page bounce on Mac OS Safari but not on iOS Safari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants