From: piers Date: Tue, 12 Aug 2008 21:54:38 +0000 (+0000) Subject: MDL-15993 The method to calculate the SCORM area needs to be changed - based on scree... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f5ca89f8b947f12e63aaeccdaa5b3a7a0ddb2fa7;p=moodle.git MDL-15993 The method to calculate the SCORM area needs to be changed - based on screen size alone does not make sense with big screens. Only allow the overide of the height parameter if the user specifies. --- diff --git a/mod/scorm/rd.js b/mod/scorm/rd.js index 1fedf74031..8a4d29a32f 100644 --- a/mod/scorm/rd.js +++ b/mod/scorm/rd.js @@ -63,7 +63,7 @@ function scorm_resize (cwidth, cheight) { var totalheighttoc = totalheight+imsnavheight; // override total height with configured height if it is smaller - if (cheight >= 400 && winheight > cheight) { + if (cheight > 0) { winheight = cheight; } var toctree = document.getElementById('toctree');