separator

Does Vaadin supports putting vertical or horizontal separators on screen? The separator should be the same width or height of the container with a certain margin…

Sorry if this is already supported. I am still finding my way around.

Jason

Never mind…
All it takes is a statement like this…

addComponent(new Label(“


”,Label.CONTENT_XHTML));

This doesn’t seem to work in Vaadin 7 beta3. The v-slot div that wraps it is 48px high and can not seem to alter its height through the api.

The height sounds like an awful lot for a simple HR element. It might come from the margin around the HR element. Do you have any custom styling in the app and what theme are you using?

For future visitors.

You can add ‘hr’ dom element like following.

addComponent(new Label("<hr />",ContentMode.HTML));

However, if you cannot see anything difference.
try set width of ‘Label’ like following.

setWidth(100f, Sizeable.Unit.PERCENTAGE)