v2.1.6 regression in horizontal scrolling (scrollX) behavior

v2.1.6 regression in horizontal scrolling (scrollX) behavior

chadrjohnsonchadrjohnson Posts: 4Questions: 1Answers: 0
edited September 18 in Free community support

Description of problem:
We have bordered tables with style="width:100%" and scrollX:true, autoWidth:true that typically display without a scrollbar at wider browser widths and then have a horizontal scrollbar when the columns, which are no-wrap, don't fit in the provided space.

When we upgraded from 2.1.5 to 2.1.6, we noticed that even on wider windows the scrollbar is always present. This happens in Chrome and FF, but doesn't happen in Safari. Examining the HTML, we see that the dt-scroll-body container will have width X and the child table will also have an inner width of X, plus 1px of left/right borders. I.e., the child table is 2px wider than the parent, resulting in a scrollbar that moves just 2px.

In Safari (and in 2.1.5) the child table has an inner width of (X-2)px. When the border pixels are added, the parent and child widths are identical and the scrollbar is hidden.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    Could you try the nightly and see if that fixes it for you please? I reverted a change in how the column widths are handled.

    If that doesn't resolve it, please link to a test case showing the issue.

    Thanks,
    Allan

  • chadrjohnsonchadrjohnson Posts: 4Questions: 1Answers: 0

    Thanks Allan. I got the versions mixed up in my initial post. The issue was introduced in 2.1.5. I will test the nightly.

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    Thank you. I hope to release it tomorrow, and if you are able to confirm the fix that will help :). If it doesn't resolve it, as I say, a link to a test case would be very useful.

    Allan

  • chadrjohnsonchadrjohnson Posts: 4Questions: 1Answers: 0

    Here's a test case.

    Are the links on the nightly page correct? I see no difference between the JS there and the latest 2.1.6 release. Maybe I'm missing something.

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    Answer ✓

    With the nightly it appears to work okay. I'll do a 2.1.7 release later today that includes the changes in the nightly.

    I've had to use fairly strong caching on the nightly file as lots of people (incorrectly) use it in production, and it was causing me bandwidth problems! Adding a query string with the current date makes sure you get the latest (more or less :)).

    Allan

  • chadrjohnsonchadrjohnson Posts: 4Questions: 1Answers: 0

    Looks good. Thanks!

Sign In or Register to comment.