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.