diff --git a/main/newscorm/lp_view.php b/main/newscorm/lp_view.php index 966c92c1f1..eba6dbd892 100755 --- a/main/newscorm/lp_view.php +++ b/main/newscorm/lp_view.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. diff --git a/main/newscorm/scorm_api.php b/main/newscorm/scorm_api.php index be768e7c75..5887623653 100755 --- a/main/newscorm/scorm_api.php +++ b/main/newscorm/scorm_api.php @@ -1439,9 +1439,8 @@ function switch_item(current_item, next_item){ 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){ cont_f.attr("src",mysrc); + + + //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();