简体   繁体   中英

how wrap the buttons items in a linkbar in flex

I'm working with a LinkBar component with a dataprovider that changes dynamically. Users can add and delete items from the LinkBar using an admin tool.

The problem is if the user adds many items in the LinkBar its width increases until it shows a scrollbar in my container.

I would like it to work so that when the user adds items, the LinkBar width is not changed but the height of the component increases instead and the additional buttons "wrap" around to another row.

Any suggestions?

You'll probably need to skin / override the LinkBar and trap the update. That way you can force it to a new / 2nd line instead of continuing to draw horizontally.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM