Did you try to extends UITextField and add
this.addEventListener(ResizeEvent.RESIZE, truncate); in the constructor and add
protected function truncate(event:ResizeEvent):void {
truncateToFit();
}
Or something similar.
Frédéric THOMAS
----------------------------------------
> Date: Sun, 28 Jun 2015 07:47:46 -0700
> From: [email protected]
> To: [email protected]
> Subject: How can I build this ItemRenderer based on an IconItemRenderer
>
> I tried to create an itemRenderer structured like the image but get strange
> problems as the text is not truncated or it is only truncated once clicked
> on it or other strange things.
>
> <http://apache-flex-users.2333346.n4.nabble.com/file/n10673/itemRenderer.png>
>
> Can anyone tell me how to create this simple itemRenderer for a flex mobile
> project?
>
>
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/How-can-I-build-this-ItemRenderer-based-on-an-IconItemRenderer-tp10673.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.