Skip to content

Commit

Permalink
ce587f218dddebc1c6fb98c7b1313cd09a731a32 Dev: Attempted fix for colum…
Browse files Browse the repository at this point in the history
…n alignment with server-side processing paging

Sync to source repo @ce587f218dddebc1c6fb98c7b1313cd09a731a32
  • Loading branch information
dtbuild committed Oct 15, 2024
1 parent 95f7821 commit d24c602
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 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.1.8",
"last-sync": "6a96aa54cfbf2efbe12971426581eacfa9d9be6e"
"last-sync": "ce587f218dddebc1c6fb98c7b1313cd09a731a32"
}
4 changes: 4 additions & 0 deletions js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -5265,6 +5265,10 @@

if (colWidth !== colSizes[i].width) {
colEl.style.width = colSizes[i].width + 'px';

if (scrollX) {
colEl.style.minWidth = colSizes[i].width + 'px';
}
}
}
}
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.

4 changes: 4 additions & 0 deletions js/dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5212,6 +5212,10 @@ function _fnScrollDraw ( settings )

if (colWidth !== colSizes[i].width) {
colEl.style.width = colSizes[i].width + 'px';

if (scrollX) {
colEl.style.minWidth = colSizes[i].width + 'px';
}
}
}
}
Expand Down

0 comments on commit d24c602

Please sign in to comment.