mirror of
https://github.com/grocy/grocy.git
synced 2025-04-28 17:23:56 +00:00
parent
6a68e410e4
commit
24cac247f5
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user