UI 组件中list自动滚动到list底部,代码片段
MyChat.prototype.ScrollToBottom=function(caller,callback){
var page=this.msgList.length - 8;
if(page < 0)page=0;
page +=1;
if(caller) this.list.tweenTo(page,0,Handler.create(caller,callback));
else this.list.tweenTo(page,0);
}