Fix bug LP height of content_id -refs #6033

1.9.x
Daniel Barreto 11 years ago
parent 4593b2ca78
commit a582cd9c90
  1. 2
      main/inc/lib/banner.lib.php
  2. 3
      main/newscorm/lp_view.php

@ -637,7 +637,7 @@ function return_breadcrumb($interbreadcrumb, $language_file, $nameTools) {
}
if (!empty($lis)) {
$html .= Display::tag('ul', $lis, array('class'=>'breadcrumb'));
$html .= Display::tag('ul', $lis, array('class'=>'breadcrumb','style'=>'margin-top: 0'));
}
}
return $html ;

@ -424,6 +424,7 @@ if ($is_allowed_to_edit) {
var hauteurHeader = document.getElementById('header').offsetHeight;
var hauteurAuthorImg = document.getElementById('author_image').offsetHeight;
var hauteurAuthorName = document.getElementById('author_name').offsetHeight;
var heightBreadcrumb = document.getElementById('learning_path_breadcrumb_zone').offsetHeight;
var hauteurMedia = 0;
if ($("#lp_media_file").length != 0) {
@ -440,7 +441,7 @@ if ($is_allowed_to_edit) {
<?php if (!empty($_SESSION['oLP']->scorm_debug)) echo 'debugsize = 150;' ?>
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';
document.getElementById('content_id').style.height = innerHauteur - debugsize - heightBreadcrumb + "px";
}
// Loads the glossary library.

Loading…
Cancel
Save