Skip to main content
Known Participant
August 2, 2010
Question

Text Alignment Issue with Tabs

  • August 2, 2010
  • 1 reply
  • 621 views

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 has been closed for replies.

1 reply

Adobe Employee
August 2, 2010

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

Known Participant
August 3, 2010

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>

Adobe Employee
August 5, 2010

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