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:
parent
d8e22f68bd
commit
a935cb66ed
1 changed files with 7 additions and 7 deletions
|
@ -284,15 +284,15 @@ export class PdfPlayer {
|
|||
const context = canvas.getContext('2d');
|
||||
canvas.width = viewport.width;
|
||||
canvas.height = viewport.height;
|
||||
|
||||
if (width < height) {
|
||||
canvas.style.width = '100%';
|
||||
canvas.style.height = 'auto';
|
||||
|
||||
if (width < height) {
|
||||
canvas.style.width = '100%';
|
||||
canvas.style.height = 'auto';
|
||||
} else {
|
||||
canvas.style.height = '100%';
|
||||
canvas.style.width = 'auto';
|
||||
canvas.style.height = '100%';
|
||||
canvas.style.width = 'auto';
|
||||
}
|
||||
|
||||
|
||||
const renderContext = {
|
||||
canvasContext: context,
|
||||
viewport: viewport
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue