Skip to content

Commit 987f1a8

Browse files
author
ndudenhoeffer
committed
fix(moveColumn): account for width of left container when positioning moving
column header. Fixes angular-ui#3417, angular-ui#3395
1 parent 835f515 commit 987f1a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/features/move-columns/js/column-movable.js

+4
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@
269269
var downFn = function( event ){
270270
//Setting some variables required for calculations.
271271
gridLeft = $scope.grid.element[0].getBoundingClientRect().left;
272+
if ( $scope.grid.hasLeftContainer() ){
273+
gridLeft += $scope.grid.renderContainers.left.header[0].getBoundingClientRect().width;
274+
}
275+
272276
previousMouseX = event.pageX;
273277
totalMouseMovement = 0;
274278
rightMoveLimit = gridLeft + $scope.grid.getViewportWidth();

0 commit comments

Comments
 (0)