From 4acbdc1a58d8043d60e3a62d1126b0f69bc6ee86 Mon Sep 17 00:00:00 2001 From: Brian Hann Date: Wed, 11 Mar 2015 15:24:35 -0500 Subject: [PATCH] fix(RTL): Use Math.abs for normalizing negatives This fixes RTL horizontal scrolling in FireFox. --- src/js/core/services/ui-grid-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/core/services/ui-grid-util.js b/src/js/core/services/ui-grid-util.js index 04106be9c3..73dfafcb4c 100644 --- a/src/js/core/services/ui-grid-util.js +++ b/src/js/core/services/ui-grid-util.js @@ -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; }