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

The Application Container does not display scrollbars when the browser window is sized smaller than the minimum container dimensions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • mx: Application
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Internet Explorer 7.x
      Language Found: English

    Description

      Steps to reproduce:

      1. Compile and execute the following code:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application
      xmlns:mx="http://www.adobe.com/2006/mxml"
      layout="absolute"
      minWidth="800"
      minHeight="600"
      verticalScrollPolicy="auto"
      horizontalScrollPolicy="auto">

      <mx:Canvas id="contentArea"
      width="100%"
      height="100%"/>

      </mx:Application>

      2. Size the browser window smaller than 800 x 600.

      Actual Results:

      Scrollbars are not displayed for the Application Container.

      Expected Results:

      Since the Application Container's minimum size is set to 800 x 600, and the child contentArea canvas is 100% of this size, that is to say it is also 800 x 600 at a minimum, then when the browser window is sized smaller than 800 x 600, one would expect scrollbars to be displayed.

      Workaround (if any):

      By nesting all content in a child container, then the scrollbars will appear as expected; however, this adds another level to the display hierarchy, which is generally undesirable.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application
      xmlns:mx="http://www.adobe.com/2006/mxml"
      layout="absolute"
      verticalScrollPolicy="auto"
      horizontalScrollPolicy="auto">

      <mx:Canvas id="contentArea"
      minWidth="800"
      minHeight="600"
      width="100%"
      height="100%"/>

      </mx:Application>

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: