Note that there are some explanatory texts on larger screens.

plurals
  1. POScroller not shown Flex 4 with VGroup
    text
    copied!<p>I am creating one application. In that There is one popup, in that I had used one VGroup in one Scroller.</p> <p>I am dynamically adding my custom components in VGroup and removing all components at the closing of the popup and saves those components in Memory Pool.</p> <p>In First step, I open a popup with numbers of components by that scroll bar appears. Then I close the popup.</p> <p>In second step, I opens a same popup instance with some less components so scroll bar does not appears and close the popup.</p> <p>And now when I open popup with more components again scrollbar not appears. So whenever popup is once opend with less components, scrollbar disappears.</p> <p>Pls help me...</p> <p>Here is the full code :</p> <pre><code>&lt;s:Scroller id="myScroller" width="100%" height="210" horizontalScrollPolicy="off"&gt; &lt;s:VGroup id="myContainer" width="100%" height="210" /&gt; &lt;/s:Scroller&gt; </code></pre> <p>Code for Adding Components :</p> <pre><code>for each(var object:MyObject in _arr) { var newView:MyCustomView = MyCustomViewPool.acquire(); myContainer.addElementAt(newView, 0); newView.myData = object; } </code></pre> <p>Here is the code for removing components :</p> <pre><code>for(var i:int = 0; i &lt; myContainer.numElements; i++) { var newViewElement:IVisualElement = myContainer.getElementAt(i); var myViewComponent:MyCustomView = newViewElement as MyCustomView; MyCustomViewPool.release(myViewComponent); } myContainer.removeAllElements(); </code></pre>
 

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