mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 01:55:47 +00:00
parent
6a68e410e4
commit
24cac247f5
@ -560,6 +560,11 @@ ResizeIframes = function()
|
|||||||
{
|
{
|
||||||
$("iframe.embed-responsive").each(function()
|
$("iframe.embed-responsive").each(function()
|
||||||
{
|
{
|
||||||
|
if (!$(this).isVisibleInViewport())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var desiredHeight = $(this)[0].contentWindow.document.body.scrollHeight;
|
var desiredHeight = $(this)[0].contentWindow.document.body.scrollHeight;
|
||||||
if (desiredHeight == 0)
|
if (desiredHeight == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user