How to disable scroll for ion-content in ionic 2?
See original GitHub issueNote: If you are having problems formatting your issue please refer to this article on using markdown in Github:
https://guides.github.com/features/mastering-markdown/
Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/ http://ionicworldwide.herokuapp.com/
Short description of the problem:
What behavior are you expecting?
Steps to reproduce: 1. 2. 3.
insert any relevant code between the above and below backticks
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Which Ionic Version? 1.x or 2.x
Plunker that shows an example of your issue
For Ionic 1 issues - http://plnkr.co/edit/Xo1QyAUx35ny1Xf9ODHx?p=preview
For Ionic 2 issues - http://plnkr.co/edit/me3Uk0GKWVRhZWU0usad?p=preview
Run ionic info
from terminal/cmd prompt: (paste output below)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:30 (2 by maintainers)
Top Results From Across the Web
Disable scroll of ion-content - Stack Overflow
You can do this by two different approaches : In SCSS:- ion-content {--overflow: hidden}. OR. In Html:- <ion-content scroll-y="false">.
Read more >How to disable ion-content scroll but certain components ...
I am trying to make my ion-content not scrollable, and I did it by doing this on my CSS file: ion-content ... Ionic...
Read more >How to disable scroll of ion-content in ionic 4 #16596 - GitHub
I want to disable scroll of ion-content in ionic 4~I tried many ways to use it in ionic2 ionic3,but there is no way...
Read more >Angular – How to disable or hide the scrollbar within an Ionic 2
Angular – How to disable or hide the scrollbar within an Ionic 2 · Setting scroll="false" on the <ion-content> · Setting scrollbar-y="false" on...
Read more >Hiding Scrollbar on ion-content -> underlining issues : r/ionic
The post here offers the solution of the starting issue, which is to remove the scrollbar. This does work and do what I...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If anyone is still having trouble with this, add
no-bounce
toion-content
, and see if that fixes it.<ion-content no-bounce></ion-content>
I used the following SO answer to fix it http://stackoverflow.com/a/40826366/1783311
Add this to your .scss file
then add the no-scroll class to your ion-content like this