Skip to content

Commit 071ca57

Browse files
jpuriJyoti Puri
authored and
Jyoti Puri
committed
angular-ui#1815 partial fix for column moving issue in IE
1 parent e9e307b commit 071ca57

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,13 @@
268268
var currentElmLeft = movingElm[0].getBoundingClientRect().left - 1;
269269
var currentElmRight = movingElm[0].getBoundingClientRect().right;
270270
var changeValue = evt.pageX - previousMouseX;
271-
var newElementLeft = currentElmLeft - gridLeft + changeValue;
271+
var newElementLeft;
272+
if (gridUtil.detectBrowser() === 'ie') {
273+
newElementLeft = currentElmLeft + changeValue;
274+
}
275+
else {
276+
newElementLeft = currentElmLeft - gridLeft + changeValue;
277+
}
272278
newElementLeft = newElementLeft < rightMoveLimit ? newElementLeft : rightMoveLimit;
273279
if ((currentElmLeft >= gridLeft || changeValue > 0) && (currentElmRight <= rightMoveLimit || changeValue < 0)) {
274280
movingElm.css({visibility: 'visible', 'left': newElementLeft + 'px'});

0 commit comments

Comments
 (0)