Browse Source

changeset 9238 461fd9e70f3c from Dokeos

Julio Montoya 15 years ago
parent
commit
f512974c15
1 changed files with 12 additions and 4 deletions
  1. 12 4
      main/newscorm/lp_view.php

+ 12 - 4
main/newscorm/lp_view.php

@@ -320,8 +320,9 @@ if($_SESSION['oLP']->mode == 'fullscreen') {
 	</div>
 	<!-- end media player layaout -->
 
-	<!-- toc layout -->
-	<div id="toc_id" name="toc_name"  style="padding:0;margin-top:20px;height:60%;width:100%">
+	<!-- toc layout -->	
+	<div id="toc_id" name="toc_name"  style="overflow: auto; padding:0;margin-top:20px;height:60%;width:100%">
+	
 		<div id="learning_path_toc" style="font-size:9pt;margin:0;"><?php echo $_SESSION['oLP']->get_html_toc(); ?>
 			<!-- log message layout -->
 	
@@ -396,6 +397,9 @@ window.onload = function() {
 	rightZoneHeightOccupied = docHeight - initialRightZoneHeight;
 	document.body.style.overflow = 'hidden';
 	updateContentHeight();
+	viewportheight = window.innerHeight;
+	document.getElementById('toc_id').style.height = viewportheight - 200 + "px";
+	
 }
 
 window.onresize = updateContentHeight;
@@ -510,8 +514,9 @@ window.onresize = updateContentHeight;
 		</div>
 		<!-- end media player layaout -->
 
-		<!-- toc layout -->
-		<div id="toc_id" name="toc_name"  style="padding:0;margin-top:20px;height:60%;width:100%">
+		<!-- toc layout -->		
+		<div id="toc_id" name="toc_name"  style="overflow: auto; padding:0;margin-top:20px;height:60%;width:100%">
+		
 			<div id="learning_path_toc" style="font-size:9pt;margin:0;"><?php echo $_SESSION['oLP']->get_html_toc(); ?>
 	
     	<?php if (!empty($_SESSION['oLP']->scorm_debug)) { //only show log  ?>
@@ -586,6 +591,9 @@ window.onload = function() {
 	rightZoneHeightOccupied = docHeight - initialRightZoneHeight;
 	document.body.style.overflow = 'hidden';
 	updateContentHeight();
+	viewportheight = window.innerHeight;
+	document.getElementById('toc_id').style.height = viewportheight - 200 + "px";
+	
 
 	//loads the glossary library	
 	<?php