Is there is any way to disable scroll?


#1

Dears,
I’m working on Ionic2 Rc.0 i tried to stop scrolling on custom page but i failed.
I tried to use that code:
this.app.setScrollDisabled(true);
but its also not working.
so if any one can help me with that problem will be appreciated.
regards,


#2

I use

.scroll-content {
    overflow-y: auto;
}

in my global css and it removes the scroll bar unless there is stuff that doesn’t fit on the page.

-Dharsan


#3

It’s actually not a class so you don’t need to use ‘.’ in front of the scroll-content.