Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK 3.0 (Release)
-
None
-
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
]]
>
</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
"/>
</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.