From da7b6379480f69e8e79cb68106a817d9337091f5 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 6 Aug 2013 18:18:08 +0000 Subject: [PATCH] large timeline: use ints in subtitle css --- source/Ox.UI/js/Video/LargeVideoTimeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Video/LargeVideoTimeline.js b/source/Ox.UI/js/Video/LargeVideoTimeline.js index 3be01b48..f58fe8a9 100644 --- a/source/Ox.UI/js/Video/LargeVideoTimeline.js +++ b/source/Ox.UI/js/Video/LargeVideoTimeline.js @@ -218,8 +218,8 @@ Ox.LargeVideoTimeline = function(options, self) { self.$subtitles[i] = $('
') .addClass('OxSubtitle' + (found ? ' OxHighlight' : '')) .css({ - left: (subtitle['in'] * self.fps) + 'px', - width: (((subtitle.out - subtitle['in']) * self.fps) - 2) + 'px' + left: Math.round(subtitle['in'] * self.fps) + 'px', + width: Math.round(((subtitle.out - subtitle['in']) * self.fps) - 2) + 'px' }) .html(Ox.highlight( subtitle.text, self.options.find, 'OxHighlight', true