From 08e85b805deaf29d28abed29cd16fdff99353981 Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] use player dimension to calc scale when fullscreen --- src/Player.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Player.html b/src/Player.html index 0117dd38..4872eab0 100644 --- a/src/Player.html +++ b/src/Player.html @@ -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, {