Titanium Community Questions & Answer Archive

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

scrollableView pagingControlHeight

The docs says the default pagingControlHeight is 20.

When I add some images to a scrollableView with showPagingControl:true and pagingControlHeight:20, I get this:
http://snapplr.com/01n2

If I comment out the pagingControlHeight:20 I get this:
http://snapplr.com/x59q

Shouldn't it be the same, since the default value is 20?

What is the expected behavior?

Here is a testcase:

var win = Ti.UI.currentWindow,
    dir = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory + '/c2'),
    files = dir.getDirectoryListing(),
    views = [],
    i;

for(i = 0; i < files.length; i++) {
    var img = Titanium.UI.createImageView({
        backgroundImage: 'c2/'+files[i],
        width: 320,
        height: 330,
        left: 0,
        top: 0
    });
    views[i] = img;
}

var scrollableView = Titanium.UI.createScrollableView({
    views: views,
    showPagingControl: true,
    pagingControlHeight: 20
});

win.add(scrollableView);
— asked August 10th 2010 by Sindre Sorhus
  • ios
  • iphone
  • pagingcontrolheight
  • scrollable
  • scrollableview
  • view
0 Comments

1 Answer

  • From what I've seen, the default pagingControlHeight is actually 30. Maybe it's documented incorrectly.

    — answered September 26th 2010 by Clifton Labrum
    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.