fix video offset
This commit is contained in:
parent
cf1cbdffaf
commit
1b18ade72c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue