Scroller extension misbehaves when table is initialized when hidden
Scroller extension misbehaves when table is initialized when hidden
Link to test case: https://jsfiddle.net/b513egfz/13/
Description of problem: I encountered the same problem as in this discussion where the scroller extension misbehaves and the row number indicator is overflowing the container resulting in being able to scroll further than it should.
This time seems to be due to the fact that the table is initialized before it's visible.
Hiding the label as a workaround still works:
div.dts_label {
display: none !important;
}
scroller: v2.0.5
Cheers,
Mario
This question has an accepted answers - jump to answer
Answers
Correct. If the table is hidden, then it can't do any virtual height / width calculations since it has no height or width while hidden. You need to call
scroller.measure()
when the table is made visible.Allan
Thank you Allan, didn't know that!
Cheers,
Mario