MDL-77375 mod_assign: set overflow constraint boundary of the dropdowns

This commit is contained in:
Shamim Rezaie 2023-05-26 05:23:18 +10:00
parent aaadb0d6ef
commit 23d3191684
2 changed files with 2 additions and 2 deletions

View File

@ -1127,7 +1127,7 @@ class renderer extends \plugin_renderer_base {
*/
public function render_assign_grading_table(\assign_grading_table $table) {
$o = '';
$o .= $this->output->box_start('boxaligncenter gradingtable');
$o .= $this->output->box_start('boxaligncenter gradingtable position-relative');
$this->page->requires->js_init_call('M.mod_assign.init_grading_table', array());
$this->page->requires->string_for_js('nousersselected', 'assign');

View File

@ -1421,7 +1421,7 @@ class assign_grading_table extends table_sql implements renderable {
$menu = new action_menu();
$menu->set_owner_selector('.gradingtable-actionmenu');
$menu->set_constraint('.gradingtable > .no-overflow');
$menu->set_boundary('window');
$menu->set_menu_trigger(get_string('edit'));
foreach ($actions as $action) {
$menu->add($action);