Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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>

— asked December 6th 2010 by Braden Powers
  • iphone mobile
0 Comments

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);
    
    — answered December 6th 2010 by John Howell
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.