Probably best explained with pictures:
Before the scroll bar appears (everything is fine):
After the scrollbar appears (headers offset)
Fiddle: https://jsfiddle.net/r2pmtL4g/
code
Probably best explained with pictures:
Before the scroll bar appears (everything is fine):
After the scrollbar appears (headers offset)
Fiddle: https://jsfiddle.net/r2pmtL4g/
code
One way to approach this is simply set the width of the tbody to > 100% so that the tbody has extra width for creating the scrollbar. like this:
.outerTable tbody {
height: calc(100vh - 150px);
overflow-y: auto;
overflow-x: hidden;
width:102%;
}
This worked for me. I only need to support Chrome so it's fine:
overflow-y: overlay;