mail view height

This commit is contained in:
神楽坂 白 2023-11-14 01:23:57 +00:00
parent 16f3e526ba
commit 1956a76278

View File

@ -395,6 +395,15 @@ function fetchMail() {
$('#exampleModalLabel').text(text); $('#exampleModalLabel').text(text);
// 显示模态框 // 显示模态框
$('#myModal').modal('show'); $('#myModal').modal('show');
var iframeHeight = $('#modalIframe').contents().find("html").height();
console.log("Iframe的实际高度是: " + iframeHeight + "px");
if (iframeHeight >= 600){
$('#modalIframe').css('height',600);
} else {
$('#modalIframe').css('height',iframeHeight);
}
} catch (e) { } catch (e) {
console.error('Error parsing API response or decoding base64:', e); console.error('Error parsing API response or decoding base64:', e);
} }