From f505aab2011cac726e48928db1e912583a4c997d Mon Sep 17 00:00:00 2001 From: Jason Fowler Date: Mon, 29 Apr 2013 15:23:04 +0800 Subject: [PATCH] MDL-39227 - SCORM - repositioning the navigation panel to be visible in all themes at all resolutions --- mod/scorm/module.js | 5 ++++- mod/scorm/styles.css | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mod/scorm/module.js b/mod/scorm/module.js index d803485cd52..10f078fc941 100644 --- a/mod/scorm/module.js +++ b/mod/scorm/module.js @@ -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); diff --git a/mod/scorm/styles.css b/mod/scorm/styles.css index 63ef9cf09f0..e77f988db4f 100644 --- a/mod/scorm/styles.css +++ b/mod/scorm/styles.css @@ -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;} +