PDA

View Full Version : How to scroll a list to the bottom



kgilb
31 Aug 2011, 6:11 AM
I've been trying to programatically scroll my list to the bottom. I've tried the following code but neither of these seem to work. Any ideas?


var s = this.scroller
var offsetY = s.size.height
var offset = {x:0,y:offsetY}
s.moveTo(offset);


I've also tried the inverse:


var s = this.scroller
var offsetY = s.size.height
var offset = {x:0,y: 0 - offsetY}
s.moveTo(offset);


Any ideas?