# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: moodle/mod/scorm/rd.js --- moodle/mod/scorm/rd.js Base (1.1.2.5) +++ moodle/mod/scorm/rd.js Locally Modified (Based On 1.1.2.5) @@ -40,9 +40,11 @@ var footer = document.getElementById('footer'); var imsnavbar = document.getElementById('tochead'); var scormtop = document.getElementById('scormtop'); + var tochead = document.getElementById('tochead'); + var footerheight = 0; var imsnavheight = 0; - var scormtopheight = 0; + var scormtopheight = 30; if (footer) { footerheight = footer.offsetHeight + parseInt(scorm_get_element_style(footer, 'marginTop', 'margin-top')) + parseInt(scorm_get_element_style(footer, 'marginBottom', 'margin-bottom')); } @@ -53,6 +55,10 @@ scormtopheight = scormtop.offsetHeight; } + if (scormtopheight == 0 && (tochead)){ + scormtopheight = tochead.offsetHeight; + } + var topmargin = parseInt(scorm_get_element_style(document.getElementsByTagName('body')[0], 'marginTop', 'margin-top')); var bottommargin = parseInt(scorm_get_element_style(document.getElementsByTagName('body')[0], 'marginBottom', 'margin-bottom')); @@ -60,7 +66,7 @@ footerheight + scormtopheight+ topmargin + - bottommargin+10; // +10 to save a minor vertical scroll always present! \ No newline at end of file + bottommargin; \ No newline at end of file var totalheighttoc = totalheight+imsnavheight; // override total height with configured height if it is defined