Skip to content

Commit

Permalink
2126267999007dd1c95b2cb727a35be5cd75b8e7 Fix: Scrolling misalignment …
Browse files Browse the repository at this point in the history
…due to incorrect selector

Sync to source repo @2126267999007dd1c95b2cb727a35be5cd75b8e7
  • Loading branch information
dtbuild committed May 4, 2024
1 parent 1336442 commit bc454cd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"src-repo": "http://github.com/DataTables/DataTablesSrc",
"last-tag": "2.0.6",
"last-sync": "3b1818412093adfa54e35a2004ac8b298054a6fe"
"last-sync": "2126267999007dd1c95b2cb727a35be5cd75b8e7"
}
2 changes: 1 addition & 1 deletion js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -5079,7 +5079,7 @@
// of the indexes out.
if (settings.aiDisplay.length) {
// Get the column sizes from the first row in the table
var colSizes = table.children('tbody > tr').eq(0).children('th, td').map(function (vis) {
var colSizes = table.children('tbody').eq(0).children('tr').eq(0).children('th, td').map(function (vis) {
return {
idx: _fnVisibleToColumnIndex(settings, vis),
width: $(this).outerWidth()
Expand Down
2 changes: 1 addition & 1 deletion js/dataTables.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.min.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5026,7 +5026,7 @@ function _fnScrollDraw ( settings )
// of the indexes out.
if (settings.aiDisplay.length) {
// Get the column sizes from the first row in the table
var colSizes = table.children('tbody > tr').eq(0).children('th, td').map(function (vis) {
var colSizes = table.children('tbody').eq(0).children('tr').eq(0).children('th, td').map(function (vis) {
return {
idx: _fnVisibleToColumnIndex(settings, vis),
width: $(this).outerWidth()
Expand Down

0 comments on commit bc454cd

Please sign in to comment.