Hi there Daniel
the truncateToFit doesn't work with percentage of a container, only if the
size of that container are setted as fixed.
for kind solution as I do at my work daly I use the container size to fit
minus the size of my textField.
for example
<mx:HBox id="coders" width="100%>
<mx:TextField witdth="{coders.width- 10}" left="2" right="2"/>
</mx:HBox>
Regards.
Igor Costa
On 2/22/07, Daniel Wabyick <[EMAIL PROTECTED]> wrote:
Hi,
While I have managed to get "..." to work in a number of situations, for
some reason the text in the label is not truncating as expected. Does
anyone know how to get the textfields to truncate properly?
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:HDividedBox width="300">
<mx:VBox width="100%" height="100" borderStyle="solid"
horizontalScrollPolicy="off">
<mx:Label text="test truncate" />
</mx:VBox>
<mx:VBox width="100%" height="100" borderStyle="solid"
horizontalScrollPolicy="off">
<mx:Label text="test truncate" truncateToFit="true" />
</mx:VBox>
</mx:HDividedBox>
</mx:Application>
Thanks,
-Daniel
--
----------------------------
Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta