Quick Tip: Horizontal And Vertical Scrollbars For A Spark Application

If I remember correctly it used to be native for Flex 3 application to show scrollbars when application content exceeded application width or height. In spark a little hack is needed:

<s:Application ...>
    <s:Scroller width="100%" height="100%">
            <s:VGroup width="100%">
                <views:Header id="header" width="100%" />
                <s:BorderContainer width="100%" height="300" borderWeight="5"/>

Notice s:VGroup nested inside s:Group component. This is in fact the hack to make both vertical and horizontal scrollbars appear correctly.