Skip to content

Commit

Permalink
MDL-77375 mod_assign: set overflow constraint boundary of the dropdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaies committed Jun 30, 2023
1 parent aaadb0d commit 23d3191
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/assign/classes/output/renderer.php
Expand Up @@ -1127,7 +1127,7 @@ public function render_assign_submission_plugin_submission(\assign_submission_pl
*/
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');
Expand Down
2 changes: 1 addition & 1 deletion mod/assign/gradingtable.php
Expand Up @@ -1421,7 +1421,7 @@ public function col_userid(stdClass $row) {

$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);
Expand Down

0 comments on commit 23d3191

Please sign in to comment.