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

layoutBounds are incorrect when there is a negativebaseline shift in the text

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Layout - General
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. compile and run the following
      <?xml version='1.0' encoding='UTF-8'?>
      <s:Application xmlns:fc="http://ns.adobe.com/flashcatalyst/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:flm="http://ns.adobe.com/flame/2008" xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:ai="http://ns.adobe.com/ai/2009" xmlns:lib="assets.graphics.negativeBaselineShift.*" xmlns:ATE="http://ns.adobe.com/ate/2009" height="600" width="800">
      <fx:DesignLayer d:id="2" d:userLabel="Layer 1">
      <s:Group x="238" y="151">
      <s:RichText ai:aa="2" color="#000000" columnCount="1" fontFamily="Myriad Pro" d:id="3" kerning="on" d:label="ATE Text To TLF Text" d:userLabel="negative baseline shift in here" flm:variant="1" whiteSpaceCollapse="preserve" x="0" y="0">
      <s:content><s><s:span>negative </s:span><s:span baselineShift="-12">baseline shift </s:span><s:span>in here</s:span></s></s:content>
      </s:RichText>
      <s:Rect bottom="0" left="0" right="0" top="0" x="238.5" y="87.5">
      <s:stroke>
      <s:SolidColorStroke caps="none" color="#EE0202" joints="miter" miterLimit="4" weight="1"/>
      </s:stroke>
      </s:Rect>
      </s:Group>

      </fx:DesignLayer>
      </s:Application>

      Actual Results:
      the red box does not include the entire text

      Expected Results:

      Workaround (if any):

      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: