New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<v-grid> text-overflow: ellipsis; doesn’t work for cell content #10
Comments
It seems that combining |
Also, this affects all body cells as well, none of them have the ellipsis either when the cell content is wider than the cell. It might be that we need to reconsider |
Related issue in Chrome: https://code.google.com/p/chromium/issues/detail?id=327437 It seems this will not be fixed by the browsers. Safari just happens to do what we would like. Options:
|
This affects body cells as well as header and footer cells. |
One possible solution would be to remove the inline height of the header cells, and only set that for the header row. We can also let the header row vertically align the cells. // Allow for ellipsis.
.v-grid-cell.v-grid {
display: inline-block;
}
// Move height and background to parent.
.v-grid-header.v-grid th.v-grid {
background-color: transparent; // <--- can also be removed if we remove the white bg color from .v-grid-cell.v-grid.
height: auto !important; // <--- can be removed if we remove inline height.
}
// Header rows.
.v-grid-header > .v-grid-row {
align-items: center;
background-color: #03A9F4;
display: flex;
height: 32px;
} |
One idea I had was that we have default renderer implementations for all cells that wrap the texts in a If we have |
Change-Id: I10ebfb9b19cc3146cccc553646b91e959ceac0c9
Enabled selecting an item from a static list (fixes vaadin#10)
Testing with
tehapo/project-list-demo
, sorting looks like this:Chrome:
Firefox:
Safari:
I guess using
...
would be OK way to go with all browsers.The text was updated successfully, but these errors were encountered: