Skip to content

Commit 9e022ba

Browse files
committed
fix(Pinning): Fix pinning when col has dyanmic width
Change column's width to it's drawnWidth when it becomes pinned. Fixes #1634
1 parent c755753 commit 9e022ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/features/pinning/js/pinning.js

+2
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
},
105105
action: function () {
106106
this.context.col.renderContainer = 'left';
107+
this.context.col.width = this.context.col.drawnWidth;
107108
this.context.col.grid.createLeftContainer();
108109

109110
// Need to call refresh twice; once to move our column over to the new render container and then
@@ -123,6 +124,7 @@
123124
},
124125
action: function () {
125126
this.context.col.renderContainer = 'right';
127+
this.context.col.width = this.context.col.drawnWidth;
126128
this.context.col.grid.createRightContainer();
127129

128130

0 commit comments

Comments
 (0)