0

is there any way to provide a dynamic margin to vaadin component like component component.setLeftMargin(10);
I know I can set margin for horizontal layout but I want to set it to every element ?

1 Answers1

2

There is a method that you can use ComponentPosition. Gets the position of a component in the layout. Returns null if component is not attached to the layout.

this.getPosition(tsheet).setCSSString("top:0px;left:0px;right:0px;bottom:0px");
wseries
  • 490
  • 5
  • 14