Add a base css class for making tbody of grid widget scrollable

This commit is contained in:
Hadi Nategh 2015-06-22 17:18:34 +00:00
parent 5f0cb37220
commit 4318bd4070

View File

@ -932,6 +932,28 @@ table.et2_grid tbody.ui-sortable:not(.ui-sortable-disabled) > tr:not(.th) {
cursor: ns-resize;
}
.et2_scrollable_tbody {
display: flex;
flex-flow: column;
height: 100%;
width: 100%;
}
.et2_scrollable_tbody thead {
flex: 0 0 auto;
width: calc(100% - 0.9em);
display: table;
table-layout: fixed;
}
.et2_scrollable_tbody tbody > tr{
width: 100%;
display: table;
table-layout: fixed;
}
.et2_scrollable_tbody tbody {
flex: 1 1 auto;
display: block;
overflow-y: scroll;
}
/**
* irame & loader
*/