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

Bounds for a line with no caps are incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • Spark: BasicLayout
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. run the following code
      <?xml version="1.0" encoding="utf-8"?>
      <s:Application
      xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:d="http://ns.adobe.com/fxg/2008/dt"
      xmlns:s="library://ns.adobe.com/flex/spark"
      width="800" height="600" backgroundColor="#ffffff">
      <fx:DesignLayer d:userLabel="Layer 1">
      <s:Group x="155" y="128">
      <s:Rect left="0" right="0" top="0" bottom="0" >
      <s:fill>
      <s:SolidColor color="0xFFFFFF"/>
      </s:fill>
      <s:stroke>
      <s:SolidColorStroke color="0xFFCC00" caps="none" joints="miter" miterLimit="4" weight="1"/>
      </s:stroke>
      </s:Rect>
      <s:Line y="20" xTo="183" x="20">
      <s:stroke>
      <s:SolidColorStroke color="0x4769C4" caps="none" joints="miter" miterLimit="4" weight="40"/>
      </s:stroke>
      </s:Line>

      </s:Group>

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

      2.
      3.

      Actual Results: the yellow rectangle outline is bigger than the thick blue line

      Expected Results: the yellow rect size should be the same as the blue line

      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: