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);
1 Answer
-
From what I've seen, the default
pagingControlHeight
is actually 30. Maybe it's documented incorrectly.