1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Update plugin.js

This commit is contained in:
Zourlo 2023-02-13 05:41:22 +09:00
parent d8e22f68bd
commit a935cb66ed

View file

@ -285,12 +285,12 @@ export class PdfPlayer {
canvas.width = viewport.width; canvas.width = viewport.width;
canvas.height = viewport.height; canvas.height = viewport.height;
if (width < height) { if (width < height) {
canvas.style.width = '100%'; canvas.style.width = '100%';
canvas.style.height = 'auto'; canvas.style.height = 'auto';
} else { } else {
canvas.style.height = '100%'; canvas.style.height = '100%';
canvas.style.width = 'auto'; canvas.style.width = 'auto';
} }
const renderContext = { const renderContext = {