Index: lams_central/web/includes/javascript/thickbox.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/thickbox.js,v diff -u -r1.1.2.2 -r1.1.2.3 --- lams_central/web/includes/javascript/thickbox.js 6 May 2015 14:40:58 -0000 1.1.2.2 +++ lams_central/web/includes/javascript/thickbox.js 10 Nov 2016 13:20:30 -0000 1.1.2.3 @@ -316,4 +316,22 @@ if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) { return true; } -} \ No newline at end of file +} + +//Aded by LAMS +function resizeThickbox() { + if (document.getElementById('TB_iframeContent') != null) { + var height = top.window.innerHeight; + if ( height == undefined || height == 0 ) { + // IE doesn't use window.innerHeight. + height = document.documentElement.clientHeight; + // alert("using clientHeight"); + } + // alert("doc height "+height); + height -= document.getElementById('TB_iframeContent').offsetTop + 140; + document.getElementById('TB_iframeContent').style.height = height +"px"; + + TB_HEIGHT = height - 32; + tb_position(); + } +}; \ No newline at end of file