Index: lams_tool_daco/web/includes/javascript/dacoCommon.js =================================================================== diff -u -rfb62c45e51106a28454659db56b4f4094ee68440 -r303ad8a12ec300c1a2a56a9a7ebbf7629dc8c19f --- lams_tool_daco/web/includes/javascript/dacoCommon.js (.../dacoCommon.js) (revision fb62c45e51106a28454659db56b4f4094ee68440) +++ lams_tool_daco/web/includes/javascript/dacoCommon.js (.../dacoCommon.js) (revision 303ad8a12ec300c1a2a56a9a7ebbf7629dc8c19f) @@ -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"; + } +