From 5393664ee685d9539a874272ad6eb8f211ec0eaf Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Fri, 6 Jul 2007 08:42:03 +0000 Subject: [PATCH] In HTML resources the container box collapsed, when floats are used for content. Solved by adding "clearfix" to the classes. --- mod/resource/type/html/resource.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/resource/type/html/resource.class.php b/mod/resource/type/html/resource.class.php index 0e90c15481..bb72fdbcf3 100644 --- a/mod/resource/type/html/resource.class.php +++ b/mod/resource/type/html/resource.class.php @@ -80,7 +80,7 @@ function display() { print_header(); print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), - "center", "", "", "20"); + "center clearfix", "", "", "20"); print_footer($course); } else { /// Make a page and a pop-up window @@ -98,7 +98,7 @@ function display() { echo ''; if (trim(strip_tags($resource->summary))) { - print_simple_box(format_text($resource->summary, FORMAT_MOODLE, $formatoptions, $course->id), "center"); + print_simple_box(format_text($resource->summary, FORMAT_MOODLE, $formatoptions, $course->id), "center clearfix"); } $link = "wwwroot/mod/resource/view.php?inpopup=true&id={$cm->id}\" onclick=\"this.target='resource{$resource->id}'; return openpopup('/mod/resource/view.php?inpopup=true&id={$cm->id}', 'resource{$resource->id}','{$resource->popup}');\">".format_string($resource->name,true).""; @@ -120,7 +120,7 @@ function display() { "", "", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm)); - print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), "center", "", "", "20"); + print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), "center clearfix", "", "", "20"); $strlastmodified = get_string("lastmodified"); echo "
$strlastmodified: ".userdate($resource->timemodified)."
"; -- 2.39.5