Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-23569

[TLF] Specifying tabStops on a RichText component does not look correct after integration of TLF 1.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Adobe Flex SDK 4.1 (Release)
    • Spark: RichText
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run the following code:
      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx">

      <s:Group>
      <s:RichText tabStops="100 200 300">
      <s:content>
      <s>Col 1<s:tab/>Col 2<s:tab/>Col 3<s:tab/>Col 4</s>
      </s:content>
      </s:RichText>
      </s:Group>

      </s:Application>

      Actual Results: The tab stops are not at 100 pixels, 200 pixels and 300 pixels. If you compile the same application in an older 4.x SDK, then, the stops looks correct.

      Expected Results: Tab stops should be at 100, 200 and 300

      Workaround (if any):
      Instead of setting the <content> property, set the <textFlow> property to a <TextFlow> object and set the tabStops on the TextFlow instead:

      <s:RichText>
      <s:textFlow>
      <s:TextFlow tabStops="100 200 300">
      <s>Col 1<s:tab/>Col 2<s:tab/>Col 3<s:tab/>Col 4</s>
      </s:TextFlow>
      </s:textFlow>
      </s:RichText>

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: