This is a bug because the 'text' and 'htmlText' properties of Label have the metadata [CollapseWhiteSpace]. The newline and spaces between the <![CDATA[ and the <font tag, and the newline and spaces between the </font> tag and the [[> should be getting collapsed into a single space.

 

- Gordon


From: [email protected] [mailto:[email protected]] On Behalf Of Michael Schmalle
Sent: Tuesday, May 23, 2006 6:35 AM
To: [email protected]
Subject: Re: [flexcoders] about Label with htmlText

 

Hi,

Oh the search facilities are great on flexcoders.

Ironically, this question was just answered 4 days ago or something. The Label is single line. CData interprets you linebreaks as line breaks. Although you don't see any text in the Label, "it is there" just multi line.

Peace, Mike

PS, don't put line breaks in it.

On 5/23/06, Dreamer <[EMAIL PROTECTED]> wrote:

Hello,flexcoders
      When I use FlexBuilder 2.0 Beta 3,I find an interesting problem.
      I want to use a Label with htmlText.when I writ like this:

   <mx:Label fontSize="14">
            <mx:htmlText>
                  <![CDATA[
                        <font color="#FF0000">This</font> is <b>html text</b> <i>in a</i> <font color="#666699">Label</font> <u>component</u></font>
                  ]]>
            </mx:htmlText>
      </mx:Label>
     

     It doesn't work.
     
      But if I write the code like this:
<mx:Label fontSize="14">
            <mx:htmlText>
                  <![CDATA[<font color="#FF0000">This</font> is <b>html text</b> <i>in a</i> <font color="#666699">Label</font> <u>component</u></font>]]>
            </mx:htmlText>
      </mx:Label>
                       
    It work well.I just change it by write the "!<[CDATA[ ]]>" and the html text in one the same line~Is that a bug??
Peace,
        Dreamer
        [EMAIL PROTECTED]
          2006-05-23


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



SPONSORED LINKS

Web site design development

Computer software development

Software design and development

Macromedia flex

Software development best practice

 

 


YAHOO! GROUPS LINKS

 

 





--
What goes up, does come down.


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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to