I am using both the android sdk and an android device. Oftentimes when I use a scrollView and change the height, the scroll length does not auto adjust. for example if I have a small label in a scrollView it obviously doesn't scroll, however, if I decrease the height of the scrollView it all of a sudden scrolls even though the content is well withing the bounds of the view. Worse yet, if you make the top and bottom meet (0 height) you get an infinite scroll length. Editing any dimensions of the content of the scrollView dispels this bug, but it make for ugly code to change a dimension every time the scrollView is resized. Any cleaner fixes? Here is some sample code demonstrating my problem.
var win1 = Titanium.UI.createWindow({ backgroundColor : 'black' }); scrollView = Titanium.UI.createScrollView({ top : 0, bottom : 1, contentHeight : 'auto' }); scrollText = Titanium.UI.createLabel({ top : 0, color : 'black', text : 'Test. ', backgroundColor : 'white' }); for(var a = 0; a < 100; a++) { scrollText.text += "Test. "; } win1.add(scrollView); win1.open(); scrollView.top = '100%'; scrollView.add(scrollText); setTimeout(function() { scrollView.top = 0; //scrollText.top = scrollText.top; //Uncomment for hack-fix }, 1000);Thank you for your answers.
-Kyle