From 491a938508d6db04d64f0c7ec8efc5ce04eb9f3d Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 16 Mar 2016 20:22:47 +1300 Subject: [PATCH] Fixes #108 add no-overflow div to take attendance page copies the same handling as assignment grading table. --- renderer.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/renderer.php b/renderer.php index cf62069..3b32b7a 100644 --- a/renderer.php +++ b/renderer.php @@ -329,14 +329,15 @@ class mod_attendance_renderer extends plugin_renderer_base { protected function render_attendance_take_data(attendance_take_data $takedata) { $controls = $this->render_attendance_take_controls($takedata); - + $table = html_writer::start_div('no-overflow'); if ($takedata->pageparams->viewmode == mod_attendance_take_page_params::SORTED_LIST) { - $table = $this->render_attendance_take_list($takedata); + $table .= $this->render_attendance_take_list($takedata); } else { - $table = $this->render_attendance_take_grid($takedata); + $table .= $this->render_attendance_take_grid($takedata); } $table .= html_writer::input_hidden_params($takedata->url(array('sesskey' => sesskey(), 'page' => $takedata->pageparams->page))); + $table .= html_writer::end_div(); $params = array( 'type' => 'submit', 'value' => get_string('save', 'attendance'));