Stefan Kendall
Stefan Kendall

Reputation: 67892

How do I stack two formpanels?

I've got two formpanels I need to stack vertically. When I put both in a panel with layout 'fit', they render on top of each other. If I use a VBox, flex:1 on both splits them by percentage, when I need one form after the other. What's the right way to do this?

Upvotes: 0

Views: 63

Answers (1)

Swar
Swar

Reputation: 5503

Do not put any layout and they will fit themselves automatically. By default, a container has AutoContainerLayout. Add vertical scrolling only to the parent container

Upvotes: 1

Related Questions