Skip to content

Commit

Permalink
Merge pull request #3426 from AgDude/issue-3417
Browse files Browse the repository at this point in the history
fix(moveColumn): account for width of left container
  • Loading branch information
PaulL1 committed May 19, 2015
2 parents 9028ed3 + 06f223b commit c0d9b48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/features/move-columns/js/column-movable.js
Original file line number Diff line number Diff line change
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 c0d9b48

Please sign in to comment.