From bb5c70df59a72df6cbc506813d6d1cbb7f578b87 Mon Sep 17 00:00:00 2001 From: Valera Rozuvan Date: Tue, 22 Oct 2013 13:10:56 +0300 Subject: [PATCH] CSS width, and left properties can be decimal numbers. --- .../xmodule/xmodule/js/src/video/06_video_progress_slider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/js/src/video/06_video_progress_slider.js b/common/lib/xmodule/xmodule/js/src/video/06_video_progress_slider.js index 1e919b0a59..3258d39be7 100644 --- a/common/lib/xmodule/xmodule/js/src/video/06_video_progress_slider.js +++ b/common/lib/xmodule/xmodule/js/src/video/06_video_progress_slider.js @@ -123,8 +123,8 @@ function () { end = this.config.end; } - left = parseInt(100 * (start / params.duration), 10); - width = parseInt(100 * ((end - start) / params.duration), 10); + left = (100 * (start / params.duration)).toFixed(1); + width = (100 * ((end - start) / params.duration)).toFixed(1); if (!this.videoProgressSlider.sliderRange) { this.videoProgressSlider.sliderRange = $('
')