fix video offset

This commit is contained in:
j 2015-04-21 16:04:45 +05:30
parent cf1cbdffaf
commit 1b18ade72c

View file

@ -1749,8 +1749,8 @@ Ox.VideoPlayer = function(options, self) {
width = Math.round(width); width = Math.round(width);
height = Math.round(height); height = Math.round(height);
return { return {
left: Math.floor((self.width - width) / 2), left: Math.floor((playerWidth - width) / 2),
top: Math.floor((self.height - width) / 2), top: Math.floor((playerHeight - height) / 2),
width: width, width: width,
height: height height: height
}; };