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-20 18:10:14 +08:00
parent 4ff4ce32e2
commit b912f84d5f

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'));