Skip to content

Commit

Permalink
fix(RTL): Use Math.abs for normalizing negatives
Browse files Browse the repository at this point in the history
This fixes RTL horizontal scrolling in FireFox.
  • Loading branch information
c0bra committed Mar 11, 2015
1 parent fbb3631 commit 4acbdc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/core/services/ui-grid-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
case 'default':
return element.scrollWidth - scrollLeft - element.clientWidth;
case 'negative':
return scrollLeft + element.scrollWidth - element.clientWidth;
return Math.abs(scrollLeft);
case 'reverse':
return scrollLeft;
}
Expand Down

0 comments on commit 4acbdc1

Please sign in to comment.