If you do'nt speicfy a rowHeight, the List will measure the first item to see how big it is before creating renderers for it and the rest.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of the_braniak Sent: Monday, May 19, 2008 5:48 AM To: [email protected] Subject: [flexcoders] Using custom item renderer with List Hi all, In my application I am pooling data every 3 seconds. The data goes into a model which updates a view. I am using a list with a custom Item renderer. In the custom itemRenderer I am overriding the data getter/setter. Everything works fine (the bindings and all) except one fact: the the DataProvider for the List contains only 4 items. When I trace out the "data" value in the overriden setter in the itemRenderrer the first item form the DataProvider is displayed twice. Has Anyone any ideea why? Does that means somehow that the list adds the first item from the dataProvider twice? When i log the length of the dataProvider it always display 4. This issue is giving me hedaches for a few days now ... code snippet: the overriden data porperty in the custom item renderer look as below private var _data : Object; override public function set data(val : Object) : void { trace("data setter = " + val); this._data = val; } the trace always display 5 lines on every model update and the first item is displayed twice TIA Claudiu

