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
 
----------------------------------------------------------------------------
CAUTION & DISCLAIMER: The information contained in this e-mail message
and/or any accompanying data or documents contain information that is 
confidential and subject to legal privilege. The information is intended
only for the recipient named in this message. The sender is excluded from
any liability arising from any further use, dissemination, distribution,
transmission or copying of this information and /or accompanying data by
the recipient. If you are not the intended recipient, you must immediately
erase the information along with all copies of this message and accompanying
data and notify the sender. Views expressed in this message are those of the
original sender, and are not necessarily the views of WestOne Services.
----------------------------------------------------------------------------

_______________________________________________
[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