RE: [flexcoders] Re: Tiny components when using callLater()

2008-04-24 Thread Alex Harui
The measuring renderer is invisible, but on the display list and is held onto in case of the need for future measuring. itemsNeedMeasurement is protected so you can't access it from the outside. You might be able to trick it to being set to true by setting a style like fontSize ___

RE: [flexcoders] Re: Tiny components when using callLater()

2008-04-24 Thread Tracy Spratt
day, April 24, 2008 1:38 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Tiny components when using callLater() It would be be considerable work to get the measuring renderer to be the first renderer, because the first renderer changes as you scroll. I don't think it shou

RE: [flexcoders] Re: Tiny components when using callLater()

2008-04-24 Thread Alex Harui
It would be be considerable work to get the measuring renderer to be the first renderer, because the first renderer changes as you scroll. I don't think it should be destroyed, I think you may be seeing two renderers (the measuring, and the first visible) that use the same data object. Like I

RE: [flexcoders] Re: Tiny components when using callLater()

2008-04-24 Thread Alex Harui
HorizontalList requires that all items be the same width and height. At startup, it measures the first one, and uses the measurements for columnWidth and rowHeight. If you're subclassing, you can set itemsNeedMeasurement=true and call invalidateProperties to force a re-measure and new width/he

RE: [flexcoders] Re: Tiny components when using callLater()

2008-04-22 Thread Alex Harui
I'm pretty sure you're not lazy, which is why I'm suggesting that you continue to spend time upgrading your skills at debugging. As your applications reach a certain level of sophistication, good debugging skills are essential. If someone had an example, they would provide it, but your combinatio

RE: [flexcoders] Re: Tiny components when using callLater()

2008-04-22 Thread Alex Harui
Amy, Many folks have used HBox as a renderer successfully. Maybe there's something about repeater that is exposing a problem, but all I can do at this point is try to offer advice on how to get more information about the problem. Overriding measure so you can see what it says is a temporary

RE: [flexcoders] Re: Tiny components when using callLater()

2008-04-21 Thread Alex Harui
The HBox has been pretty thoroughly debugged, but that doesn't mean it will work for you in all possible scenarios. A single call to validateClient is made then the HBox's measurements are used. Anything that causes a second validation pass can be missed. Calling measure() directly can confuse