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

setLayoutBoundsSize() sometimes incorrectly sets the width to 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 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

      This bug is causing problems for Catalyst. There are 2 related issues...

          • Problem #1 ***
            1. Run the attached application
            2. Click "set rotation".
            3. Click "Button"
            Result: nothing happens. This is the expected behavior.

      4. Run the app again
      5. Click "rotate around center"
      6. Click "Button"
      Result: the button shrinks really small. This should not happen.

      I think this is a bug in setLayoutBoundsSize(), the button should not shrink really small in step 6.
      Workaround: in the MXML file, I added some code in rotateAroundPt() to force very small values in the matrix to be zero instead. This makes Problem #1 go away.

          • Problem #2 ***
            1. In Flash Builder, put a breakpoint in setRotation(), on the line that says "put breakpoint here".
            2. Run this app in the debugger
            3. Click "set rotation"
            4. When you arrive at the breakpoint, go to the Variables panel, and open up "this.button.[inherited].transform.matrix"
            5. Go from the breakpoint
            6. Click "Button"
            Result: the button shrinks really small.

      The only difference from steps 1-3 above is that we stopped at the breakpoint and looked at the member variables of the button.

      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: