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

After reparenting Canvas, children still open in original window

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • mx: Window
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a WindowedApplication that contains one or more Canvas objects. Also, declare a creationCompleted function.
      2. In the creationComplete function, create a Window.
      3. Add one of the Canvas objects to the newly-created window with addChild.
      4. In the debugger, look at the stage.nativeWindow property of the Canvas.

      Actual Results:
      The stage is pointing at the first window the Canvas was added to, not the Window we moved the canvas to. This is a problem because PopupManager will use the stage to calculate the location of a displayed popup. It appears in the wrong location.

      Expected Results:
      Stage should reflect the new window the canvas was added to.

      Workaround (if any):
      Use ActionScript to create the Canvas and then add it to the desired window. If you use MXML the Canvas will be assigned to the 'main window' of the WindowedApplication.

      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: