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

Application: Run time changes to width/height are not executed as expected.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 2.0.1 (Release)
    • None
    • mx: Application
    • None
    • Affected OS(s): Mac
      Language Found: English

    Description

      Steps to reproduce:
      1. Set the width and height of the Application to X pixels (where X is some number < Y).
      2. Once the application is loaded, set width = Y and height = Y.

      Actual Results:
      If Y > X, then only a portion of the application is visible (as the size of the embedded application window in the browser does not change). Using percentWidth/percentHeight causes changes relative to the size of the application at startup (not relative to the browser window). This issue is seen with both percentage and pixel based width / height.

      Expected Results:
      Embedded application in window would change size.

      Workaround (if any):
      Set the application.width and application.height as well as use ExternalInterface/JavaScript to change the HTML container's width/height.
      I modified the index.template.html template in Flex Builder and added the following code:

      <script language="JavaScript" type="text/javascript">
      function setFlexContainerSize(w,h) {
      window.${application}.width = w;
      window.${application}.height = h;
      }
      </script>

      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: