MDL-78715 payment: prevent action menus flowing under container.

This commit is contained in:
Paul Holden 2023-07-14 17:12:51 +01:00
parent e77452220b
commit 5fe5f398e2
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164

View File

@ -60,6 +60,7 @@ foreach ($accounts as $account) {
$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')) {
@ -85,7 +86,7 @@ if (has_capability('moodle/site:config', context_system::instance())) {
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')));