question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to disable scroll for ion-content in ionic 2?

See original GitHub issue

Note: 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:30 (2 by maintainers)

github_iconTop GitHub Comments

81reactions
larssncommented, Feb 15, 2017

If anyone is still having trouble with this, add no-bounce to ion-content, and see if that fixes it.

<ion-content no-bounce></ion-content>

64reactions
0x1ad2commented, Dec 1, 2016

I used the following SO answer to fix it http://stackoverflow.com/a/40826366/1783311

Add this to your .scss file

.no-scroll .scroll-content{
     overflow: hidden;
}

then add the no-scroll class to your ion-content like this

<ion-content class="no-scroll">
..
</ion-content>
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found