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

BasicLayout measures incorrectly when there are both horizontalCenter and left and right constraints with percentWidth specified when horizontalCenter values and child may be pushed out of the borders of the Group

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • Adobe Flex SDK 4.0 (Release)
    • None
    • Spark: BasicLayout
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. run the attached test files.

      For test2:
      <Group id="parent"><fx:Button id="childBtn" width="50%" height="50%" left="10" right="10" horizontalCenter="50" verticalCenter="50"/></Group>
      ->childBtn.: x=85;y=100;width=21;height=21
      childGroup:x=0;y=0;width=90;height=121

      Expected Results:

      test2 - childGroup width should be 170 as in the other test cases.

      Workaround (if any):

      set the width of the group explicitly.

      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: