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

Path.setLayoutBoundsSize() gives incorrect result.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • Layout - General
    • None
    • Affected OS(s): Mac
      Affected OS(s): Mac OS 10.5
      Browser: Firefox 3.x
      Language Found: English

    Description

      Found in build 4.0.0.10876

      Steps to reproduce:
      1. Compile and run the attached MXML file.
      2. click "Change Path Layout Bounds". This will set the path';s layout bounds to (108, 106).
      3. Look at the text that appears.

      Actual Results: the "new: layoutBounds" shows a width = 116 and height = 113.

      Expected Results: the "new: layoutBounds" shows a width = 108 and height = 106.

      Note: this worked as expected in the SDK 4 re
      lease from a week or two ago.

      ------ Here's another explanation of the issue...

      1. Evaluate this code

      path.setLayoutBoundsSize(108, 106);
      var newWidth: Number = path.getLayoutBoundsWidth();
      var newHeight: Number = path.getLayoutBoundsHeight();

      Actual result; getLayoutBoundsWidth() returns 116.08, and getLayoutBoundsHeight() returns 113.54.

      Expected result: getLayoutBoundsWidth returns 108, and getLayoutBoundsHeight() returns 106, the same values that passed to setLayoutBoundsWidth.

      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: