Merge branch 'wip-MDL-39227-master' of git://github.com/phalacee/moodle

This commit is contained in:
Sam Hemelryk 2013-06-10 11:43:31 +12:00
commit e559265c10
2 changed files with 6 additions and 1 deletions

View File

@ -504,7 +504,10 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc
// navigation
if (scorm_hide_nav == false) {
scorm_nav_panel = new Y.YUI2.widget.Panel('scorm_navpanel', { visible:true, draggable:true, close:false, xy: [250, 450],
var left = scorm_layout_widget.getUnitByPosition('left');
navposition = Y.YUI2.util.Dom.getXY(left);
navposition[1] += 200;
scorm_nav_panel = new Y.YUI2.widget.Panel('scorm_navpanel', { visible:true, draggable:true, close:false, xy: navposition,
autofillheight: "body"} );
scorm_nav_panel.setHeader(M.str.scorm.navigation);

View File

@ -12,6 +12,7 @@
#page-mod-scorm-player #scormpage {position: relative;width: 100%;height: 100%;}
#page-mod-scorm-player #scormpage #toctree {position:relative;width:100%;overflow-x: auto;overflow-y: auto;}
#page-mod-scorm-player #tocbox {position: relative;left: 0px;width: 100%;height: 100%;font-size: 0.8em;}
#page-mod-scorm-player #toctree { overflow: visible; }
#page-mod-scorm-player #tochead {position: relative;text-align: center;top: 3px;height: 30px;}
#page-mod-scorm-player #scormpage .scoframe {frameborder: 0;}
@ -39,3 +40,4 @@
.path-mod-scorm.jsenabled .scorm-center { display:block;}
.path-mod-scorm.jsenabled .toc { display:block;}
.path-mod-scorm.jsenabled #scormpage #tocbox { display:block;}