Documentation

(applications)

Remove Default Padding of Workscreen

The standard application frame with Vaadin UI adds a default padding of five pixels to every screen if margins of screen layout are smaller than five pixels.

An example:

and the html code:

To change the default padding, simply set a custom margin in your screen, e.g.

getLayout().setMargins(new UIInsets(8, 8, 8, 8));

or set/add the style:

setStyle(new Style("nopadding"));

to remove the default padding.

Here's the result without default padding:

The default padding of the screen is now unset, but the users layout has custom margins:

layUsers.setMargins(7, 2, 5, 5);
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information