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 angular-ui#3417, angular-ui#3395
  • Loading branch information
ndudenhoeffer committed May 7, 2015
1 parent 835f515 commit 987f1a8
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 987f1a8

Please sign in to comment.