Skip to content

Commit

Permalink
Update column resizing including header (#486, fixes #407)
Browse files Browse the repository at this point in the history
  • Loading branch information
xianzhi3 authored Feb 17, 2022
1 parent d831808 commit 7465002
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/publicMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -1783,8 +1783,9 @@ export default function (self) {
self.ctx.font = self.style.columnHeaderCellFont;
var t =
self.ctx.measureText(col.title || col.name).width +
self.style.headerCellPaddingRight +
self.style.headerCellPaddingLeft;
self.style.columnHeaderCellPaddingRight +
self.style.columnHeaderCellPaddingLeft +
self.style.cellAutoResizePadding;
m = t > m ? t : m;
formatter = self.formatters[col.type];
});
Expand Down

0 comments on commit 7465002

Please sign in to comment.