Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to arrange Flex component to scroll properly
    primarykey
    data
    text
    <p>In following code, I have one large component, and I'd like only the level4 panel to be scrollable, but instead, the whole application become scrollable.</p> <p>Any suggestion ? Thanks</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&gt; &lt;mx:Panel width="100%" height="100%" title="level1"&gt; &lt;mx:Panel width="100%" height="100%" title="level2"&gt; &lt;mx:HDividedBox width="100%" height="100%"&gt; &lt;mx:TextArea width="200" height="100%"/&gt; &lt;mx:Panel width="100%" height="100%" title="level3"&gt; &lt;mx:ApplicationControlBar width="100%" dock="true"&gt; &lt;mx:Spacer width="30"/&gt; &lt;mx:LegendItem width="80" height="20" fill="#CC9900" label="test1"/&gt; &lt;/mx:ApplicationControlBar&gt; &lt;mx:Panel width="100%" height="100%" title="level4"&gt; &lt;mx:UIComponent width="2000" height="2000"/&gt; &lt;/mx:Panel&gt; &lt;/mx:Panel&gt; &lt;/mx:HDividedBox&gt; &lt;/mx:Panel&gt; &lt;/mx:Panel&gt; &lt;/mx:Application&gt; </code></pre> <p>If I set ScrollPolicy, then no scrollbar will be shown up. Please check the following, thanks.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" horizontalScrollPolicy="off" verticalScrollPolicy="off"&gt; &lt;mx:Panel width="100%" height="100%" title="level1" horizontalScrollPolicy="off" verticalScrollPolicy="off"&gt; &lt;mx:Panel width="100%" height="100%" title="level2" horizontalScrollPolicy="off" verticalScrollPolicy="off"&gt; &lt;mx:HDividedBox width="100%" height="100%"&gt; &lt;mx:TextArea width="200" height="100%"/&gt; &lt;mx:Panel width="100%" height="100%" title="level3" horizontalScrollPolicy="off" verticalScrollPolicy="off"&gt; &lt;mx:ApplicationControlBar width="100%" dock="true"&gt; &lt;mx:Spacer width="30"/&gt; &lt;mx:LegendItem width="80" height="20" fill="#CC9900" label="test1"/&gt; &lt;/mx:ApplicationControlBar&gt; &lt;mx:Panel width="100%" height="100%" title="level4" horizontalScrollPolicy="auto" verticalScrollPolicy="auto"&gt; &lt;mx:UIComponent width="2000" height="2000"/&gt; &lt;/mx:Panel&gt; &lt;/mx:Panel&gt; &lt;/mx:HDividedBox&gt; &lt;/mx:Panel&gt; &lt;/mx:Panel&gt; &lt;/mx:Application&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload