Skip to content
Browse files

Merge branch 'm20_MDL-27876' of git://github.com/danmarsden/moodle in…

…to MOODLE_20_STABLE
  • Loading branch information...
2 parents d5addee + 902b6d7 commit 187c395673de6b479cd908f6dc33a7de144636b1 unknown committed Aug 2, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 mod/scorm/module.js
View
10 mod/scorm/module.js
@@ -190,6 +190,16 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc
}
scorm_layout_widget.setStyle('height', '100%');
+ var center = scorm_layout_widget.getUnitByPosition('center');
+ center.setStyle('height', '100%');
+
+ // calculate the rough new height
+ newheight = YAHOO.util.Dom.getViewportHeight() *.82;
+ if (newheight < 600) {
+ newheight = 600;
+ }
+ scorm_layout_widget.set('height', newheight);
+
scorm_layout_widget.render();
scorm_resize_frame();

0 comments on commit 187c395

Please sign in to comment.
Something went wrong with that request. Please try again.