Skip to main content
Known Participant
Aug 2, 2010 10:03 AM UTC
Question

Text Alignment Issue with Tabs

Hi

     I am create an application using Flex 4 and flash player 10.1.

I am using textLayout framework for plotting text. When I add TabElement in text and set textAlignment to Center ,

It remain left align. I check it on TourDeFlex same issue is there

plz see image below. if anyone know solution please letme know

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Adobe Employee
Aug 2, 2010 7:35 PM UTC

Can you post the markup example for this so I can see it in action? Click on the "Markup" button, and copy the result into a forum reply.

Thanks!

- robin

Translate
Known Participant
Aug 3, 2010 6:04 AM UTC

Hi Robin,

             Thank you so much for replying.

Here is Markup of above Example,

<?xml version="1.0" encoding="utf-8"?>
<TextFlow fontFamily="Arial" fontSize="16" paddingBottom="2" paddingLeft="2" paddingRight="2" paddingTop="2" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008">

     <p textAlign="center">

              <span fontFamily="Arial Black">123<tab/>456</span>

     </p>

</TextFlow>

Translate
Adobe Employee
Aug 5, 2010 12:37 AM UTC

Tabs do not work in conjunction with centered lines,because otherwise you don't know where the link is going to be until you've composed it, and you can't compose it without knowing where its going to go relative to the tab positions. We treat lines that have tabs as start aligned or justified.

This may not be what you wanted (sorry) but I think it explains what you're seeing.

- robin

Translate