You should post your cellRenderer script.

Mark 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Darren
Bowers
Sent: Tuesday, August 22, 2006 11:07 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Multiline text in a Tree Component


Hi all,
 
I am having a major pain implementing a multiline textfield in a Tree
component using the Cellrenderer API.
 
I am using the basic multiline code framework from Macrodobe here:
ttp://www.adobe.com/support/documentation/en/flash/fl8/samples.html
<http://www.adobe.com/support/documentation/en/flash/fl8/samples.html> 
 
If I set the textfield autoSize property in the cell, 90% of all text fields
will auto-size and auto-centre vertically properly. But for some strange
reason, there are a bunch that dont centre. They are usually off by about
5px. Some you can actually see drop when the cell re-renders. I am sure it
is something to do with the textfields reporting an incorrect height size
after the text is applied to the textfield, but i am having a nightmare
figuring out how to code around it.
 
Here is an example of what happens:
http://www.3ddu.org/test/treeViewComponent.html
<http://www.3ddu.org/test/treeViewComponent.html> 
 
Has anyone got an elegant solution to a multiline cellrenderer that centers
vertically or a hint on where to look to solve this?
 
Thanks,
Darren
 

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to