Skip to content

Commit

Permalink
Dev: Another attempt at fixing column alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJard committed Oct 15, 2024
1 parent ce587f2 commit 3ae6f7f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions js/core/core.scrolling.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,17 @@ function _fnScrollDraw ( settings )

if (firstTr) {
var colSizes = $(firstTr).children('th, td').map(function (vis) {
return {
var outerWidth = $(this).outerWidth();
var ret = {
idx: _fnVisibleToColumnIndex(settings, vis),
width: $(this).outerWidth()
width: outerWidth
};

if (scrollX) {
ret.minWidth = outerWidth;
}

return ret;
});

// Check against what the colgroup > col is set to and correct if needed
Expand Down

0 comments on commit 3ae6f7f

Please sign in to comment.