Permalink
Browse files

MDL-39227 - SCORM - repositioning the navigation panel to be visible …

…in all themes at all resolutions
  • Loading branch information...
1 parent 00afef1 commit fbc635e400c396eec86addcdb0dd4b62d67e7b80 @jsnfwlr jsnfwlr committed with Sam Hemelryk Apr 29, 2013
Showing with 6 additions and 1 deletion.
  1. +4 −1 mod/scorm/module.js
  2. +2 −0 mod/scorm/styles.css
View
@@ -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
@@ -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;}
+

0 comments on commit fbc635e

Please sign in to comment.