]> git.mjollnir.org Git - moodle.git/commitdiff
FIxed widths properly
authormoodler <moodler>
Wed, 10 Sep 2003 14:06:07 +0000 (14:06 +0000)
committermoodler <moodler>
Wed, 10 Sep 2003 14:06:07 +0000 (14:06 +0000)
mod/quiz/index.php
mod/quiz/report/overview/report.php

index 043eab3dba93faeb37c844ab748302428b94ab69..b78b7dc1d6195f717b62261ff95a9d17610bbae0 100644 (file)
     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) {
index 978c2dc3e8b3d918fc307d128506a9cde8c448d5..b96ec0b8ec2bc261a3ac6b0905ffd7c62c1e1169 100644 (file)
@@ -18,7 +18,9 @@ class quiz_report extends quiz_default_report {
 
         $table->head = array("&nbsp;", $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);