Don't resize invisible embedded iframes (references #2480 and #2421)

This commit is contained in:
Bernd Bestel 2024-02-24 20:13:39 +01:00
parent 6a68e410e4
commit 24cac247f5
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -560,6 +560,11 @@ ResizeIframes = function()
{
$("iframe.embed-responsive").each(function()
{
if (!$(this).isVisibleInViewport())
{
return;
}
var desiredHeight = $(this)[0].contentWindow.document.body.scrollHeight;
if (desiredHeight == 0)
{