Hi,
I have a MainView extends FormLayout
, the only view in the browser. There is no margin/padding, all elements are attached to the browser window frame. I put the FormLayout into a HorizontalLayout. Then scrollbars appears on the browsers content.
How To set margins/padding to the box of the FormLayout ?
<vaadin.version>14.0.14</vaadin.version>
I mean this. The buttons are attached to the window’s borders left and right. I want a gap there.
@Route
@PWA(name = "Project Base for Vaadin Flow with Spring", shortName = "Project Base")
public class MainView extends FormLayout {
public MainView(@Autowired MessageBean bean) {
Button button = new Button("Click me",
e -> Notification.show(bean.getMessage()));
add(button);
Button button2 = new Button("Click me 2",
e -> Notification.show(bean.getMessage()));
add(button2);
}
}