From 8ad43a576eba0c4e5165d39845558f7a8a019a6a Mon Sep 17 00:00:00 2001 From: nikita Date: Tue, 11 Apr 2017 11:11:02 +0530 Subject: [PATCH] updated iframeresizer page. --- 400-SOURCECODE/AIAHTML5.Web/app/views/Link/iframeresizer.html | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/Link/iframeresizer.html b/400-SOURCECODE/AIAHTML5.Web/app/views/Link/iframeresizer.html index b07dbd2..6f654af 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/Link/iframeresizer.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/Link/iframeresizer.html @@ -1,4 +1,3 @@ - @@ -52,6 +51,23 @@ else return results[1]; } + + function resizeIframe(dHeight) { + var iframe = document.getElementById('externalLink'); + if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { + var ieversion = new Number(RegExp.$1) + if (ieversion == 8 || ieversion == 7) { + iframe.height = parseInt(dHeight) + 250; + } + else { + iframe.height = dHeight; + } + } + else { + iframe.height = dHeight; + } + } + - \ No newline at end of file + -- libgit2 0.21.4