mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-74812 gradingform_rubric: Do not use deprecated width attribute
Use inline CSS style to define level width instead.
This commit is contained in:
parent
4ff4ce32e2
commit
b912f84d5f
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user