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

GraphicElement snapshot capture doesn't match player bounds of stroked objects

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      1. Run the code below
      2. Click on the button to change state
      3. Watch the transition effect

      Actual Results:
      All three objects shift up/left during the effect, then snap back down when the effect finishes

      Expected Results:
      The objects should not move during the effect

      Workaround (if any):
      Don't use a stroke, or use a stroke that lines up with pixel boundaries

      <?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">

      <s:states>
      <s:State name="s1"/>
      <s:State name="s2"/>
      </s:states>
      <s:transitions>
      <s:Transition>
      <s:CrossFade targets="

      {[rect,path,ellipse]}

      "/>
      </s:Transition>
      </s:transitions>
      <s:Button label="change state" click="currentState = currentState == 's1' ? 's2' : 's1'"/>
      <s:Path id="path" data="L 50 0 L 50 20 L 0 20 L 0 0 L 50 20 M 50 0 L 0 20" x="10" y="60">
      <s:stroke>
      <s:SolidColorStroke color="0"/>
      </s:stroke>
      </s:Path>
      <s:Rect id="rect" x="10" y="100" width="50" height="20">
      <s:stroke>
      <s:SolidColorStroke color="0"/>
      </s:stroke>
      </s:Rect>
      <s:Ellipse id="ellipse" x="10" y="140" width="30" height="30">
      <s:stroke>
      <s:SolidColorStroke color="0"/>
      </s:stroke>
      </s:Ellipse>
      </s:Application>

      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: