Index: lams_tool_daco/web/includes/javascript/dacoCommon.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_daco/web/includes/javascript/dacoCommon.js,v diff -u -r1.3 -r1.3.12.1 --- lams_tool_daco/web/includes/javascript/dacoCommon.js 19 Aug 2008 03:46:41 -0000 1.3 +++ lams_tool_daco/web/includes/javascript/dacoCommon.js 18 Mar 2016 09:01:53 -0000 1.3.12.1 @@ -30,9 +30,13 @@ } function resizeHorizontalRecordListFrame(elementIdPrefix,questionListLength){ - + var horizontalRecordListFrame = document.getElementById(elementIdPrefix+'horizontalRecordListFrame'); - if (horizontalRecordListFrame!=null){ - horizontalRecordListFrame.style.height=((questionListLength+1)*111)+'px'; - } - } \ No newline at end of file + var doc = horizontalRecordListFrame.contentDocument? horizontalRecordListFrame.contentDocument : horizontalRecordListFrame.contentWindow.document; + var body = doc.body; + var html = doc.documentElement; + var height = Math.max( body.scrollHeight, body.offsetHeight, + html.clientHeight, html.scrollHeight, html.offsetHeight ); + horizontalRecordListFrame.style.height = height + 60 + "px"; + } +