Scroller extension misbehaves when table is initialized when hidden

Scroller extension misbehaves when table is initialized when hidden

Mario#Mario# Posts: 7Questions: 3Answers: 0
edited March 2022 in Bug reports

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

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin
    Answer ✓

    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

  • Mario#Mario# Posts: 7Questions: 3Answers: 0

    Thank you Allan, didn't know that!

    Cheers,

    Mario

Sign In or Register to comment.