I am following this example in order to have scrollbars in my application
http://blog.flexexamples.com/2010/11/03/adding-scroll-bars-to-an-spark-application-container-in-flex-4/
The difference is tha in my Application file I have a viewstack with three views. The only when the second view comes into display I need my Application to show Scrollbars but it doens't. If I give my viewstack a fixed height the scrollbars appear but I don't want to give a fixed width.
Thanks in advance.
Best Answer
From the Flex 4 SDK doc (link text):
"The default width and height of a ViewStack container is the width and height of the first child. A ViewStack container does not change size every time you change the active child.
You can use the following techniques to control the size of a ViewStack container so that it displays all the components inside its children:
The technique that you use is based on your application and the content of your ViewStack container."
To get around this you can add a scroller inside navigator contents. Code may look something like this: