PDA

View Full Version : Overflow auto or scroll for divs inside Sencha Touch panel



joemacstevens
9 Nov 2011, 2:56 PM
The new IOS update supports overflow: scroll.
I've been trying to implement this in Sencha Touch using the following css

#selected_plan {
width: 75%;
float: left;
height: 540px;
overflow-y: scroll;
overflow-x: hidden;
background-color: #ccc;
-webkit-overflow-scrolling: touch;

}

but it does not work.
To test, I built a version of my content outside of Sencha Touch. This div in this version scrolls as expected.

mitchellsimoens
10 Nov 2011, 5:01 AM
I would think the Scroller class is conflicting with this.

joemacstevens
10 Nov 2011, 6:31 AM
Thanks,

I suspected that, but I'm not using the Scroller class on this element. However, there are other places within the app where it might be used. Is there a way for me to disable the Scroller class on specific elements?

trkaky
2 Dec 2013, 5:15 AM
Think I have a workaround to this.

http://stackoverflow.com/a/20329200/862474