use player dimension to calc scale when fullscreen

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent f6219c37f9
commit 08e85b805d

View File

@@ -101,8 +101,8 @@
this._width = width;
this._height = height;
const dimension = {
width: document.body.offsetWidth,
height: document.body.offsetHeight - controllerHeight,
width: this.refs.player.offsetWidth,
height: this.refs.player.offsetHeight - controllerHeight,
};
this.set(dimension);
this.updateScale(replayer.wrapper, {