소스 검색

Minor - Fix table UI see BT#15118

Julio Montoya 6 년 전
부모
커밋
a7de5c301c
2개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      main/gradebook/lib/GradebookUtils.php
  2. 2 3
      main/gradebook/lib/fe/gradebooktable.class.php

+ 1 - 1
main/gradebook/lib/GradebookUtils.php

@@ -1674,7 +1674,7 @@ class GradebookUtils
             $table.
             $graph.
             '<br />'.get_lang('Feedback').'<br />
-            <textarea rows="5" cols="100" ></textarea>';
+            <textarea rows="5" cols="100">&nbsp;</textarea>';
 
         $result = $pdf->html_to_pdf_with_template(
             $content,

+ 2 - 3
main/gradebook/lib/fe/gradebooktable.class.php

@@ -905,8 +905,7 @@ class GradebookTable extends SortableTable
             // $data['average'] = array(rand(0,50), rand(0,50));
             $dataSet->addPoints($data['average'], get_lang('Average'));
             $dataSet->addPoints($data['categories'], 'categories');
-
-            $dataSet->setAbscissa("categories");
+            $dataSet->setAbscissa('categories');
             $xSize = 600;
             $ySize = 400;
             $pChart = new pImage($xSize, $ySize, $dataSet);
@@ -922,7 +921,7 @@ class GradebookTable extends SortableTable
                 ["R" => 0, "G" => 0, "B" => 0]
             );
             $pChart->drawText(
-                10,
+                80,
                 16,
                 get_lang('Results'),
                 ["FontSize" => 11, "Align" => TEXT_ALIGN_BOTTOMMIDDLE]