MDL-74812 gradingform_rubric: Do not use deprecated width attribute

Use inline CSS style to define level width instead.
This commit is contained in:
Jun Pataleta
2022-06-21 12:33:05 +08:00
parent d82af28545
commit d0a2de670b
+1 -1
View File
@@ -228,7 +228,7 @@ class gradingform_rubric_renderer extends plugin_renderer_base {
'class' => 'level' . $level['class']
);
if (isset($level['tdwidth'])) {
$tdattributes['width'] = round($level['tdwidth']).'%';
$tdattributes['style'] = "width: " . round($level['tdwidth']).'%;';
}
$leveltemplate = html_writer::start_tag('div', array('class' => 'level-wrapper'));