Re: [flexcoders] How to get the width of the Itemrenderer in a List

2010-08-18 Thread Alex Harui
If you know the borders, paddings and positioning of the datagroup, can’t you then calculate the width? Maybe compare the DataGroup’s x,y,w,h. On 8/17/10 7:35 PM, dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com wrote: Spark. If the item renderer item is outside of the

[flexcoders] How to get the width of the Itemrenderer in a List

2010-08-17 Thread dorkie dork from dorktown
How would I get the width of an item renderer in a list? I'm trying to fit the width of a list so that it doesn't clip an item renderer half way thru if there's not enough space. So if the List is 105 px wide and an single itemrenderer is 10 pixels wide then I want to resize the list to 100

Re: [flexcoders] How to get the width of the Itemrenderer in a List

2010-08-17 Thread Alex Harui
Spark or MX List. Did you confuse width for height? On 8/17/10 2:30 PM, dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com wrote: How would I get the width of an item renderer in a list? I'm trying to fit the width of a list so that it doesn't clip an item renderer half

Re: [flexcoders] How to get the width of the Itemrenderer in a List

2010-08-17 Thread dorkie dork from dorktown
Spark. If the item renderer item is outside of the Lists visible area then it returns width or height 0 or sometimes index out of bounds errors. It seems items aren't created if they haven't been scrolled into view yet and if they have but they aren't in view currently then I think it's returning