use player dimension to calc scale when fullscreen
This commit is contained in:
@@ -101,8 +101,8 @@
|
|||||||
this._width = width;
|
this._width = width;
|
||||||
this._height = height;
|
this._height = height;
|
||||||
const dimension = {
|
const dimension = {
|
||||||
width: document.body.offsetWidth,
|
width: this.refs.player.offsetWidth,
|
||||||
height: document.body.offsetHeight - controllerHeight,
|
height: this.refs.player.offsetHeight - controllerHeight,
|
||||||
};
|
};
|
||||||
this.set(dimension);
|
this.set(dimension);
|
||||||
this.updateScale(replayer.wrapper, {
|
this.updateScale(replayer.wrapper, {
|
||||||
|
|||||||
Reference in New Issue
Block a user