Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sencha Touch: Disable scrolling for a Panel, List, or DataView?

I see that panels have the option to set scroll: to horizontal or vertical, but is there any way to do something like: scroll: 'false'? I've tried such without luck.

I have a DataView nested in a Panel. I can set the scroll direction of each independently, but I want the DataView not to scroll at all.

[Any tips will earn answer points and a digital high five. Heck, I'll even throw in a bonus high SIX!]

like image 566
Old McStopher Avatar asked Dec 17 '22 12:12

Old McStopher


1 Answers

Okay, turns out by fudging around a bit (as I've learned to do with poorly documented Sencha Touch) that disabling the scroll can be done as follows:

scroll: false

Note the absence of single or double quotes when setting scroll: to false. The values horizontal and vertical, however can be done with single or double quotes.

like image 54
Old McStopher Avatar answered Jan 14 '23 07:01

Old McStopher