--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> TileList stores the renderer's size in rowHeight/columnWidth

Yes, but if I'm going to have a component that will work in any 
environment, that might not be the best thing to depend on.  My 
renderer is a subclass of button.  It seems that somehow the button 
_does_ know how much space is given to it so the label can truncate 
properly, but I'm not seeing it.

I'm thinking that I might be better off attacking from the TileList 
side, either overriding commitProperties to check the size on all 
renderers, or going in deeper where it draws the renderers and have 
it check the size of all the renderers and have it force another pass 
at a new size only if it finds one that is bigger than the first 
one.  No telling what that will screw up, though ;-).

Possibly I could have it run through the collection and see what the 
results of the labelFunction and iconFunction would be and just 
measure the one with the longest label and biggest icon, but that 
presumes those will be one and the same and won't work for other 
types of renderers.

I want to make this available to the community when finished 
(actually I already have, but I haven't got that last piece of 
functionality that would make it truly useful).  
http://flexdiary.blogspot.com/2008/08/tilelist-with-stylefunction.html

-Amy

Reply via email to