Page not scrolling or how to
Hello all,
I have a window that is basically a user entry. I have about 7 fields that they have to enter. When I try to scroll down, I cannot. Is there something that I have to enable to allow me to do this?
Thanks in advance!
<script src='http://pastie.org/1351287.js'></script>
1 Answer
-
Try placing your fields inside a Scrollview. Below is the example from the ScrollView Titanium API. The "layout: 'vertical'" option in the scrollview may also come in handy…
var scrollView = Titanium.UI.createScrollView({ contentWidth:'auto', contentHeight:'auto', top:0, showVerticalScrollIndicator:true, showHorizontalScrollIndicator:true }); var view = Ti.UI.createView({ backgroundColor:'#336699', borderRadius:10, width:300, height:2000, top:10 }); scrollView.add(view); Titanium.UI.currentWindow.add(scrollView);