A text input component with font size relative text length

A text input component with font size relative text length

Postby shunjie on Wed Nov 14, 2007 3:13 pm

Well, is this a question posted during Nov UG meeting. How about creating a component together and post it up here? =)
User avatar
shunjie
 
Posts: 229
Joined: Wed Oct 17, 2007 6:05 am

Re: A text input component with font size relative text length

Postby magnuky on Sun Nov 18, 2007 5:25 pm

hi all, this question was raised by me. i managed to get it worked (see attached for codes).

just to recap, the issue was automatically resizing the text font size in order to fit a text area without any scrolling needed. it is a little more tricky when the text is not typed in by the user, but is generated upon initialization. the solution is to make use of the events: updateDisplayList() and FlexEvent.UPDATE_COMPLETE.

cheers
Attachments
Scalable_Font.zip
(158.9 KB) Downloaded 58 times
magnuky
 
Posts: 5
Joined: Fri Nov 02, 2007 3:07 am

Re: A text input component with font size relative text length

Postby mzlin on Tue Jun 17, 2008 7:48 am

Is it possible to resize the textArea instead of the font size?
mzlin
 
Posts: 6
Joined: Wed May 14, 2008 5:00 am


Return to Flex Components Design

Who is online

Users browsing this forum: No registered users and 1 guest

cron