Title: Message
Thanks. Simple answer for a simple question.
 
Markus
-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Philippe Maegerman
Sent: 30. kesäkuuta 2005 10:33
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Width of a label when setting font size

I managed to get it working this way:
<mx:Label fontSize="14" htmlText="&lt;font size='14'&gt;Not so long text
field&lt;/font&gt;"/>
 
If I'm not wrong, text formatting won't apply on htmlText fields, but specifying a font size might help flash to anticipate the necessary space.
 
 
Philippe Maegerman
 
 
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Markus Ansamaa
Sent: jeudi 30 juin 2005 9:03
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Width of a label when setting font size


I have a label, which value is set via htmlText property. If I don't specify
any font size, label field is scaled to show the entire text. However, if I
set font size, the text will be clipped. How do I tell the label to take
into account the font size when it's calculating its preferred width?

Here's a short demonstration of the problem:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">

      <mx:Label htmlText="Not so long text field"/>
      <mx:Label htmlText="&lt;font size='14'&gt;Not so long text
field&lt;/font&gt;"/>

</mx:Application>


Markus Ansamaa



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com


------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**

This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.
------------------------------------------------------------------



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to