FlexTips - mx:Text vs. mx:TextArea

Wednesday, July 18th, 2007

Here my first tip for Flex developers. Maybe many of you know, maybe it will be helpful for someone. If you want make custom component, let’s say “Message dialog” which should be resized according text, nothing is easier. Just use mx:Text, not mx:TextArea. mx:Text has ability to resize according its text property. If you don’t specify widht and height, width and height i resized for mx:Text. If you specify one property (width or height), second one will be resized when text will be longer. For mx:TextArea just scrollbars will appear.

Play with example and look into source code.
FlexTip - mx:Text vs. mx:TextArea
AddThis Feed Button

This is some text prior to the author information. You can change this text from the admin section of WP-Gravatar  I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets. Read more from this author


tagged under:

ABOUT THIS AUTHOR

I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets.

Get a Trackback link

1 Comments


  1. diego
    Visit Site
    November 27th, 2007

    hi,
    Is there a maximum fontSize that can be displayed in a Text Component (or TextField, TextArea, etc)? Because whenever I try to display a font size greater than 150, the size doesn’t change. Any help with this would be very appreciated. I’ve searched around some and I’m not seeing much written on it. I’ve tried this with both embedded and non embedded fonts.

    thanks.
    Diego

Live Preview

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

This site is using OpenAvatar based on
Images is enhanced with WordPress Lightbox JS by Zeo