diff --git a/Bootstrap.Admin/Scripts/Content.js b/Bootstrap.Admin/Scripts/Content.js index 72994b42..0d4245d5 100644 --- a/Bootstrap.Admin/Scripts/Content.js +++ b/Bootstrap.Admin/Scripts/Content.js @@ -1,4 +1,12 @@ -$(function () { - var fra = $('iframe').get(0); - fra.height = fra.contentDocument.body.offsetHeight; +$(function () { + function iframeResposive() { + try { + var fra = $('iframe').get(0); + fra.height = fra.contentDocument.body.offsetHeight; + } + catch (e) { + } + } + $(window).on('load', iframeResposive); + $(window).on('resize', iframeResposive); }); \ No newline at end of file