mirror of
https://github.com/grocy/grocy.git
synced 2026-04-03 03:19:26 +02: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…
Reference in New Issue
Block a user