confile February 2016

How to make a Vaadin-grid column of width 1px?

I tried to make a column width of 1px in a vaadin grid. I tried the following:

grid.columns[0].flex = 0;
grid.columns[0].minWidth = 1;
grid.columns[0].maxWidth = 1;
grid.columns[0].width = 1;

It still has a width of 48px.

How to make a Vaadin-grid column of width 1px?

Answers


Jouni February 2016

You can try to set the padding of the .vaadin-grid-cell elements to 0. That will get you at least closer to 1px, but seems like it still has at least 10px minimum width.

Post Status

Asked in February 2016
Viewed 2,204 times
Voted 6
Answered 1 times

Search




Leave an answer