Index: lams_central/web/css/thickbox.css =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/css/thickbox.css,v diff -u -r1.2.2.2 -r1.2.2.3 --- lams_central/web/css/thickbox.css 4 Oct 2016 16:50:30 -0000 1.2.2.2 +++ lams_central/web/css/thickbox.css 10 Nov 2016 13:20:30 -0000 1.2.2.3 @@ -142,8 +142,10 @@ } /* Added by LAMS. Enables scrolling on iOS devices. */ -#TB_iframeContent, #TB_overlay, #TB_window { - overflow-y: scroll !important; +#TB_window { + overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; - height:95% !important; -} \ No newline at end of file +} +#TB_iframeContent, #TB_overlay, #TB_window { + height:100% !important; +} 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