From a28958a8b4e4bc77954c25e49f4902e8ca368886 Mon Sep 17 00:00:00 2001 From: chaideqing Date: Thu, 16 Nov 2023 03:01:33 +0000 Subject: [PATCH] * Fix bug #40544. --- module/file/view/download.html.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/module/file/view/download.html.php b/module/file/view/download.html.php index 439e3532fc..40a70656a5 100644 --- a/module/file/view/download.html.php +++ b/module/file/view/download.html.php @@ -23,7 +23,7 @@
createLink('file', 'read', "fileID=$file->id"));?>
- +
file->playFailed;?>
@@ -62,6 +62,18 @@ function showError() $('.playfailed').show(); } +function loadedmetadata() +{ + var videoElem = $('video')[0]; + var metaHeight = videoElem.videoHeight; + var parentHeight = window.parent.innerHeight; + var videoMaxHeight = parentHeight - 190; + if(videoMaxHeight < metaHeight) + { + $(videoElem).css('height', videoMaxHeight); + } +} + function setCharset(charset) { var link = createLink('file', 'download', 'fileID=' + fileID + '&mouse=left');