Browse Source

CCLE-9110 - Made report row height adjust to name

MOODLE_38_STABLE
Dean Jones 4 years ago
committed by Dan Marsden
parent
commit
2501938e3e
  1. 2
      renderer.php
  2. 6
      styles.css

2
renderer.php

@ -2198,7 +2198,7 @@ class mod_attendance_renderer extends plugin_renderer_base {
$row = new html_table_row();
$text = ($reportdata->pageparams->view == ATT_VIEW_SUMMARY) ? '' : get_string('summary');
$cell = $this->build_data_cell($text, false, true, $usercolspan);
$cell = $this->build_data_cell($text, false, true);
$cell->attributes['class'] = $cell->attributes['class'] . ' headcol';
$row->cells[] = $cell;
if (!empty($usercolspan)) {

6
styles.css

@ -281,14 +281,14 @@
overflow-x: scroll;
overflow-y: visible;
padding: 0;
margin-left: 180px;
}
#page-mod-attendance-report .attendancereporttable .headcol {
position: absolute;
position: sticky;
width: 200px;
left: 0;
top: auto;
vertical-align: top;
background: white;
border-top-width: 1px;
}

Loading…
Cancel
Save