Skip navigation
Currently Being Moderated

textAlign justify and linkElement problem

Feb 17, 2010 1:47 AM

Hi,

 

I have a paragraph with text and a link.

The link contains a span (backgroundColor = blue, fontWeight=bold) and all properties of each link format (format, linkNormalFormat, linkActiveFormat, linkHoverFormat) inherit from the paragraph format.

 

I added event listener on the link to manage tooltip.

 

It works perfectly if paragraph.textAlign = "left" or "right" as shown in attached pictures.

 

But if I change my code to paragrah.textAlign="justify" (without changing anything else), I obtain a bad result (as shown in attached picture) :

- the backgroundColor on the span doesn't work anymore (but the bold is still working)

- my tooltip event listener doesn't work anymore.

 

I don't understand why, thanks for your help !

 

Olivier

 

PS : I used the build 13875.

Attachments:
 
Replies
  • Currently Being Moderated
    Feb 17, 2010 9:19 AM   in reply to ojuin

    Hi,

     

    I can't quite duplicate the bug.  Can you send your markup or even better a small actionscript example demonstrating the problem that can be built?  Also does removing the event listener make a difference?  Finally have you tried it with the 10.1 player?

     

    Thanks,

    Richard

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 20, 2010 9:58 AM   in reply to ojuin

    Hi,

    I can duplicate the bug with the 10.0 player - it doesn't reproduce with the 10.1 player.  Looks like its one of the player bugs that was fixed in 10.1.

     

    You can download player 10.1 beta 2 here:

    http://labs.adobe.com/technologies/flashplayer10/

     

    I'm using a more recent 101 player than beta 2 so I can't guarantee the fix is in beta2.

     

    I don't have a 10.0 workaround.

     

    It seems to work in this case but why are you using UIComponent?  Why not use a Sprite and add it to the textArea's rawChildren?  Is there an advantage to UIComponent?  A sprite is fully interactive in this case.  Switching to Sprite doesn't solve the bug but I was just curious.

     

    Thanks,

    Richard

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2011 5:28 AM   in reply to ojuin

    It is displayed as a letter without being linked in Flex SDK development here when I meet the following conditions.

     

    flex_sdk_4.5.0.18623 -- It is not linked.

    flex_sdk_4.1.0.16076 -- I work definitely.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points