Skip to content

Commit

Permalink
angular-ui#1815 partial fix for column moving issue in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuri committed Nov 10, 2014
1 parent 3778cdd commit 6dfc2f9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/features/move-columns/js/column-movable.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,13 @@
var currentElmLeft = movingElm[0].getBoundingClientRect().left - 1;
var currentElmRight = movingElm[0].getBoundingClientRect().right;
var changeValue = evt.pageX - previousMouseX;
var newElementLeft = currentElmLeft - gridLeft + changeValue;
var newElementLeft;
if (gridUtil.detectBrowser() === 'ie') {
newElementLeft = currentElmLeft + changeValue;
}
else {
newElementLeft = currentElmLeft - gridLeft + changeValue;
}
newElementLeft = newElementLeft < rightMoveLimit ? newElementLeft : rightMoveLimit;
if ((currentElmLeft >= gridLeft || changeValue > 0) && (currentElmRight <= rightMoveLimit || changeValue < 0)) {
movingElm.css({visibility: 'visible', 'left': newElementLeft + 'px'});
Expand Down

0 comments on commit 6dfc2f9

Please sign in to comment.