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
?
Asked
Active
Viewed 382 times
0

Mohammed Subhi Sheikh Quroush
- 5,801
- 18
- 57
- 95
-
just adapt your css?! .v-horizontallayout{ margin-left: 10px} – riddy Mar 05 '15 at 12:26
1 Answers
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