Skip to content

Commit

Permalink
fix(moveColumn): account for width of left container when positioning…
Browse files Browse the repository at this point in the history
… moving

column header.

 Fixes #3417, #3395
  • Loading branch information
ndudenhoeffer committed May 5, 2015
1 parent efd3798 commit 06f223b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/features/move-columns/js/column-movable.js
Expand Up @@ -269,6 +269,10 @@
var downFn = function( event ){
//Setting some variables required for calculations.
gridLeft = $scope.grid.element[0].getBoundingClientRect().left;
if ( $scope.grid.hasLeftContainer() ){
gridLeft += $scope.grid.renderContainers.left.header[0].getBoundingClientRect().width;
}

previousMouseX = event.pageX;
totalMouseMovement = 0;
rightMoveLimit = gridLeft + $scope.grid.getViewportWidth();
Expand Down

0 comments on commit 06f223b

Please sign in to comment.