From 7404bdb373c4eead82ef2c0bcfc1b4d1129cfec6 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Thu, 14 Aug 2014 16:57:25 +0200 Subject: [PATCH] Set max normalized percentage value to 1 If a value greater than the end value is set for the range slider, the handle and bar width should not be greater than the container --- js/foundation/foundation.slider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation/foundation.slider.js b/js/foundation/foundation.slider.js index cbbd18fa2..b97fa6b9e 100755 --- a/js/foundation/foundation.slider.js +++ b/js/foundation/foundation.slider.js @@ -141,7 +141,7 @@ }, normalized_percentage : function(val, start, end) { - return (val - start)/(end - start); + return Math.min(1, (val - start)/(end - start)); }, normalized_value : function(val, start, end, step) { -- 2.47.2