Flex: container scrollbars in HBox
-
03-07-2019 - |
Question
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?
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.
OTHER TIPS
<Application
xmlns="http://www.adobe.com/2006/mxml"
horizontalScrollPolicy="off">
<HBox width="100%">
...
I believe that should work.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow