FixedColumns - Scrolling on a fixed rightColumn scrolls only that column, not the whole table

FixedColumns - Scrolling on a fixed rightColumn scrolls only that column, not the whole table

heijlerheijler Posts: 1Questions: 1Answers: 0
edited August 2020 in Free community support

Hello,
First of all, thanks for your great work on datatables!

Description of problem:
I have encountered a bug with the FixedColumns extension where if you have both a right and a left fixed column you can vertically scroll the rightColumns but the scrollbody and leftColumns will not scroll along, in effect causing a desync in the scrolling.

Link to test case:
http://live.datatables.net/panewema/1/edit?html,js,output

Reproduction steps
1. Have a table with both left and right being fixed columns, for example:

...
fixedColumns:   {
    leftColumns: 1,
    rightColumns: 1
}
...
  1. Place the mouse cursor anywhere on top of the right fixed column, in this example the "Salary" column.

  2. Scroll and observe only the right fixed column being scrolled.

This behaviour has been reproduced on the following systems:
* Mac OS 10.15.6 - Firefox 79.0
* Mac OS 10.15.6 - Safari 13.1.2
* Mac OS 10.15.6 - Google Chrome 84.0.4147.125
* Windows 10 Pro build 19041.450 - Firefox 79.0
* Windows 10 Pro build 19041.450 - Microsoft Edge 84.0.522.61
* Windows 10 Pro build 19041.450 - Internet Explorer 11 11.450.19041.0

If for some reason the test case doesn't work, or gets removed eventually, this issue can currently also be reproduced in this example by trying to scroll while hovering the "E-mail" column: https://datatables.net/extensions/fixedcolumns/examples/initialisation/left_right_columns.html

Thanks for reading!

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    Answer ✓

    This has was raised here and has been fixed, just pending release. You can see the fix in the nightly releases. You can find the nightly releases here.

    We're hoping to release this in the next few weeks.

    Colin

This discussion has been closed.