Browse Source

[svn r17940] minor add width and height in iframe "learnpath_preview_frame" see FS#3510

Carlos Vargas 16 years ago
parent
commit
c2c9de21dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/newscorm/learnpath.class.php

+ 1 - 1
main/newscorm/learnpath.class.php

@@ -5014,7 +5014,7 @@ class learnpath {
 		
 		//TODO: add a path filter
 		if($iframe){
-			$return .= '<iframe id="learnpath_preview_frame" frameborder="0" src="' . api_get_path(WEB_COURSE_PATH) . $_course['path'] . '/document' . str_replace('%2F','/',urlencode($row_doc['path'])) . '?'.api_get_cidreq().'"></iframe>';
+			$return .= '<iframe id="learnpath_preview_frame" frameborder="0" height="400" width="100%" scrolling="auto" src="' . api_get_path(WEB_COURSE_PATH) . $_course['path'] . '/document' . str_replace('%2F','/',urlencode($row_doc['path'])) . '?'.api_get_cidreq().'"></iframe>';
 		}
 		else{
 			$return .= file_get_contents(api_get_path(SYS_COURSE_PATH) . $_course['path'] . '/document' . $row_doc['path']);