Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Change default fixed Grid row height in Vaadin 7.7.7

Arthur Khisamiev
5 years ago Feb 27, 2017 9:38pm
Tatu Lund
5 years ago Feb 28, 2017 7:40am

Try this one:

https://vaadin.com/api/valo/#variable-v-unit-size
 

Arthur Khisamiev
5 years ago Feb 28, 2017 7:56am
Tatu Lund
5 years ago Feb 28, 2017 10:38am

"v-unit-size" is global. If you want to tweak row heigth of specific table, this kind of CSS rule could work in your theme. "my-grid" being here the style name you give to a Grid you want to be impacted. I.e. Grid.setStyleName("my-grid")

.my-grid .v-grid-body .v-grid-cell { height: 100px; background-color: aqua; }
 

Arthur Khisamiev
5 years ago Feb 28, 2017 12:49pm