--Remove default padding of work-screen
1 post
• Page 1 of 1
--Remove default padding of work-screen
This article is outdated - please use our new system at
https://doc.sibvisions.com
The standard application frame with Vaadin UI adds a default padding of 5 pixels to every screen if margins of screen layout are smaller than 5 pixels.
An example:
and the html code:
To change the default padding, simply set a custom margin in your screen, e.g.
- Code: Select all
getLayout().setMargins(new UIInsets(8, 8, 8, 8));
or set/add the style:
- Code: Select all
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:
- Code: Select all
layUsers.setMargins(7, 2, 5, 5);
-
Development@SIB - Posts: 325
- Joined: Mon Sep 28, 2009 1:54 pm
1 post
• Page 1 of 1