Skip to content

Commit

Permalink
MDL-78715 payment: prevent action menus flowing under container.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Jul 14, 2023
1 parent e774522 commit 5fe5f39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion payment/accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

$menu = new action_menu();
$menu->set_menu_trigger(get_string('edit'));
$menu->set_boundary('window');
if ($canmanage) {
$menu->add(new action_menu_link_secondary($account->get_edit_url(), null, get_string('edit')));
if (!$account->get('archived')) {
Expand All @@ -85,7 +86,7 @@
echo html_writer::div($text, 'pb-2');
}

echo html_writer::table($table);
echo html_writer::div(html_writer::table($table), 'position-relative');

$PAGE->requires->event_handler('[data-action=delete]', 'click', 'M.util.show_confirm_dialog',
array('message' => get_string('accountdeleteconfirm', 'payment')));
Expand Down

0 comments on commit 5fe5f39

Please sign in to comment.