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?
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.
<Application
xmlns="http://www.adobe.com/2006/mxml"
horizontalScrollPolicy="off">
<HBox width="100%">
...
I believe that should work.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.