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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
layout size to fit components
I have following situation: VerticalLayout with Labels inside it.
When I'm building the application I don't know lengths of the labels.
Is there any way to tell this VerticalLayout to have width enough to fit all labels without breaking them? I don't want to have empty space.
i tried to set width for VerticalLayout and Labels setWidth(null). But this don*t work.
It should work that way, by having undefined width for both the VL and the Labels. There's also setWidthUndefined(), which is same as setWidth(null), but with more clear meaning.