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

[FCLayout] Constraints on objects rotated exactly 45 degrees give unexpected results.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Spark: Layout
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1.Run the following app:

      <?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"
      width="800" height="600" backgroundColor="#FFFFFF">

      <s:Rect left="362" right="222" top="125" bottom="257" rotation="45">
      <s:stroke>
      <s:SolidColorStroke color="#ff0000"/>
      </s:stroke>
      </s:Rect>

      </s:Application>

      Actual Results: the rect appears as a diagonal line

      Expected Results: the rect appears as a square diamond

      What's happening: because the rotation is exactly 45 degrees, there are an infinite number of ways to meet the constraints. The SDK is choosing a way that minimizes the area of the rect. instead, it should maximize the area.

      Workaround: Don't use 45 degrees.

      I've discussed this with Evtim.

      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: