Skip to content

Commit

Permalink
fix(Pinning): Fix pinning when col has dyanmic width
Browse files Browse the repository at this point in the history
Change column's width to it's drawnWidth when it becomes pinned.

Fixes #1634
  • Loading branch information
c0bra committed Oct 3, 2014
1 parent c755753 commit 9e022ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/features/pinning/js/pinning.js
Expand Up @@ -104,6 +104,7 @@
},
action: function () {
this.context.col.renderContainer = 'left';
this.context.col.width = this.context.col.drawnWidth;
this.context.col.grid.createLeftContainer();

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


Expand Down

0 comments on commit 9e022ba

Please sign in to comment.