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

VBox-inner box container incorrectly functioning inside other containers except Canvas

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: Box View
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      I spent many hours before I found simple solution how can I display scrollable content inside VBox or HBox containers.
      I would like to know what magic implemented in mx Canvas container. And can I apply same behavior without using my hack.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="onInitialize()"
      paddingLeft="100" paddingRight="100" paddingTop="100" paddingBottom="100">
      <mx:Script>
      <![CDATA[
      private function onInitialize():void

      { var a:Array = []; for(var i:int = 0; i < 100; i++) a[i] = i; r.dataProvider = a; }

      ]]
      >
      </mx:Script>
      <mx:VBox width="100%" height="100%" borderStyle="solid">
      <!-mx:Canvas width="100%" height="100%" horizontalScrollPolicy="off"->
      <mx:VBox width="100%" height="100%">
      <mx:Repeater id="r">
      <mx:Text text="Line

      {r.currentItem}

      "/>
      </mx:Repeater>
      </mx:VBox>
      <!-/mx:Canvas->
      </mx:VBox>
      </mx:Application>

      Actual Results:

      See Actual.swf

      Expected Results:

      Expected.swf

      Workaround (if any):

      Uncomment two lines in my example.

      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: