mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Resize embedded iframes to content height (this should fix #130)
This commit is contained in:
parent
dfc05e0bec
commit
03720940d4
@ -463,7 +463,12 @@ ResizeResponsiveEmbeds = function(fillEntireViewport = false)
|
||||
var maxHeight = $("body").height();
|
||||
}
|
||||
|
||||
$(".embed-responsive").attr("height", maxHeight.toString() + "px");
|
||||
$("embed.embed-responsive").attr("height", maxHeight.toString() + "px");
|
||||
|
||||
$("iframe.embed-responsive").each(function()
|
||||
{
|
||||
$(this).attr("height", $(this)[0].contentWindow.document.body.scrollHeight.toString() + "px");
|
||||
});
|
||||
}
|
||||
$(window).on('resize', function()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user