mail view height
This commit is contained in:
parent
16f3e526ba
commit
1956a76278
|
|
@ -395,6 +395,15 @@ function fetchMail() {
|
|||
$('#exampleModalLabel').text(text);
|
||||
// 显示模态框
|
||||
$('#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) {
|
||||
console.error('Error parsing API response or decoding base64:', e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user