wGrand
06-17-2008, 08:20 PM
The <mx:List> component defaults to 7 rows.
I was able to make it readjust by initiating this code on creationComplete():
if(this.collection.length<6)
this.rowCount=this.collection.length;
else
this.rowCount=5;
But, I drag items in and out of the list and the rowCount doesn't update. Neither does its width. Is there a way to make it automatically size?
I was able to make it readjust by initiating this code on creationComplete():
if(this.collection.length<6)
this.rowCount=this.collection.length;
else
this.rowCount=5;
But, I drag items in and out of the list and the rowCount doesn't update. Neither does its width. Is there a way to make it automatically size?