MDL-77375 core: Cleanup redundant set_constraint() calls

Also removed the 10rem bottom margin form the quiz editing page. It was
there to make sure that there is enough room for the 'add new question'
dropdown. But it's not needed anymore (hasn't been since long time ago).
This commit is contained in:
Shamim Rezaie 2023-05-22 07:00:17 +10:00
parent 848efb3f13
commit 316d79d038
8 changed files with 0 additions and 29 deletions

View file

@ -449,7 +449,6 @@ class mod_feedback_complete_form extends moodleform {
global $OUTPUT;
$menu = new action_menu();
$menu->set_owner_selector('#' . $this->guess_element_id($item, $element));
$menu->set_constraint('.feedback_form');
$menu->set_menu_trigger(get_string('edit'));
$menu->prioritise = true;

View file

@ -608,7 +608,6 @@ class edit_renderer extends \plugin_renderer_base {
return '';
}
$menu = new \action_menu();
$menu->set_constraint('.mod-quiz-edit-content');
$trigger = html_writer::tag('span', get_string('add', 'quiz'), ['class' => 'add-menu']);
$menu->set_menu_trigger($trigger);
// The menu appears within an absolutely positioned element causing width problems.