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

bounds height & width reporting incorrectly when setting rotation and minWidth, minHeight

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      1.Compile & run

      <?xml version="1.0" encoding="utf-8"?>
      <FxApplication xmlns="http://ns.adobe.com/mxml/2009">
      <Script>
      <![CDATA[

      ]]
      >
      </Script>
      <Group width="100%" height="100%">
      <Group id="ellGroup" >
      <Ellipse id="ell" height="50" width="75" top="0" left="0" bottom="0" right="0">
      <fill>
      <SolidColor color="0x00CC00"/>
      </fill>
      </Ellipse>
      </Group>
      </Group>

      <VGroup y="300">
      <FxButton click="ell.rotation=90;ell.minWidth=100;ell.minHeight=120;" label="Set metrics"/>
      <FxButton click="w.text=ell.getLayoutBoundsWidth().toString();h.text=ell.getLayoutBoundsHeight().toString()" label="Get metrics"/>
      <Label id="w" />
      <Label id="h" />
      </VGroup>
      </FxApplication>
      2. Click on Set Metrics, then Get Metrics

      Actual Results:
      Ellipse reports back as 120x75

      Expected Results:
      Ellipse should be 120x100.

      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: