mirror of
https://github.com/grocy/grocy.git
synced 2025-08-21 04:43:32 +00:00
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user