R – Flex: container scrollbars in HBox


I have an HBox in my flex application. The problem is, when there are too many things inside the HBox a scroll bar appears at the bottom of the app. How can I make it appear in the HBox, so the scrollbar only scrolls thestuff inside the HBox and not the entire app?

Best Solution

Try creating a Canvas around the HBox. If you declare the width of the Canvas to 100%, it should be the width of the stage, and when the HBox inside gets wider, a scrollbar should appear.