From: moodler Date: Wed, 10 Sep 2003 14:06:07 +0000 (+0000) Subject: FIxed widths properly X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8748278c60c1429dd0ebbde8d816aa2a8217015f;p=moodle.git FIxed widths properly --- diff --git a/mod/quiz/index.php b/mod/quiz/index.php index 043eab3dba..b78b7dc1d6 100644 --- a/mod/quiz/index.php +++ b/mod/quiz/index.php @@ -54,15 +54,15 @@ if ($course->format == "weeks") { $table->head = array ($strweek, $strname, $strquizcloses, $gradecol); $table->align = array ("center", "left", "left", "left"); - $table->size = array (10, "*", 10); + $table->size = array (10, "*", "*", "*"); } else if ($course->format == "topics") { $table->head = array ($strtopic, $strname, $strquizcloses, $gradecol); $table->align = array ("center", "left", "left", "left"); - $table->size = array (10, "*", 10); + $table->size = array (10, "*", "*", "*"); } else { $table->head = array ($strname, $strquizcloses, $gradecol); $table->align = array ("left", "left", "left"); - $table->size = array ("*", 10); + $table->size = array ("*", "*", "*"); } foreach ($quizzes as $quiz) { diff --git a/mod/quiz/report/overview/report.php b/mod/quiz/report/overview/report.php index 978c2dc3e8..b96ec0b8ec 100644 --- a/mod/quiz/report/overview/report.php +++ b/mod/quiz/report/overview/report.php @@ -18,7 +18,9 @@ class quiz_report extends quiz_default_report { $table->head = array(" ", $strname, $strattempts, "$strbestgrade /$quiz->grade"); $table->align = array("center", "left", "left", "center"); - $table->size = array(10, "*", "*", 20); + $table->wrap = array("nowrap", "nowrap", "nowrap", "nowrap"); + $table->width = 10; + $table->size = array(10, "*", "80%", "*"); foreach ($grades as $grade) { $picture = print_user_picture($grade->userid, $course->id, $grade->picture, false, true);