Adding right margin to the lp content see BT#1607

skala
Julio Montoya 14 years ago
parent 2a2783b1ce
commit 11d87ef73e
  1. 5
      main/newscorm/lp_view.php
  2. 12
      main/newscorm/scorm_api.php

@ -386,6 +386,11 @@ if ($_SESSION['oLP']->mode == 'fullscreen') {
document.getElementById('inner_lp_toc').style.height = innerHauteur - hauteurHaut - 40 - debugsize + "px";
if (document.getElementById('content_id')) {
document.getElementById('content_id').style.height = innerHauteur + 'px';
//Adding margin to the lp content see BT#1607
if (frames['content_name']) {
frames['content_name'].document.body.style.margin="0 12px 0px 5px";
}
}
// Loads the glossary library.

@ -1439,9 +1439,8 @@ function switch_item(current_item, next_item){
<?php if($oLP->mode == 'fullscreen'){ ?>
cont_f = window.open(''+mysrc,'content_id','toolbar=0,location=0,status=0,scrollbars=1,resizable=1');
cont_f.onload=function(){
olms.info_lms_item[0]=olms.info_lms_item[1];
}
olms.info_lms_item[0]=olms.info_lms_item[1];
}
cont_f.onunload=function(){
olms.info_lms_item[0]=olms.info_lms_item[1];
}
@ -1449,6 +1448,13 @@ function switch_item(current_item, next_item){
<?php } else { ?>
cont_f.attr("src",mysrc);
<?php } ?>
//Add a right margin see BT#1607
if (frames['content_name']) {
frames['content_name'].document.body.style.margin="0 12px 0px 5px";
}
if(olms.lms_lp_type==1 || olms.lms_item_type=='asset'){
xajax_start_timer();

Loading…
Cancel
Save