From 1b18ade72cd9a7b9994045715d0bf6345888a5df Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 21 Apr 2015 16:04:45 +0530 Subject: [PATCH] fix video offset --- source/UI/js/Video/VideoPlayer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/UI/js/Video/VideoPlayer.js b/source/UI/js/Video/VideoPlayer.js index a7362a9c..ae1fc174 100644 --- a/source/UI/js/Video/VideoPlayer.js +++ b/source/UI/js/Video/VideoPlayer.js @@ -1749,8 +1749,8 @@ Ox.VideoPlayer = function(options, self) { width = Math.round(width); height = Math.round(height); return { - left: Math.floor((self.width - width) / 2), - top: Math.floor((self.height - width) / 2), + left: Math.floor((playerWidth - width) / 2), + top: Math.floor((playerHeight - height) / 2), width: width, height: height };