Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

How to set auto scroll to panel

Rajesh Thanga
9 years ago Apr 23, 2012 6:10am
Leif Åstrand
9 years ago Apr 23, 2012 6:44am
Rajesh Thanga
9 years ago Apr 23, 2012 7:19am
Herman Bovens
9 years ago Apr 24, 2012 4:04pm

If you set the height of the VerticalLayout to anything smaller, then there is nothing to scroll so there will be no scrollbars.
You need to set the height of the VerticalLayout to SIZE_UNDEFINED so it will take the height of its contents. Then, if its contents height is greater than the Panel size, it will show scrollbars.