Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Scroll form into center view

Oliver Günther9ef81c61459e
diff --git a/frontend/src/stimulus/controllers/dynamic/meeting-agenda-item-form.controller.ts b/frontend/src/stimulus/controllers/dynamic/meeting-agenda-item-form.controller.ts
index 23fb85fa386..4c90dfcad70 100644
--- a/frontend/src/stimulus/controllers/dynamic/meeting-agenda-item-form.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/meeting-agenda-item-form.controller.ts
@@ -51,7 +51,7 @@ export default class extends Controller {
const titleInput = this.element.querySelector('input[name="meeting_agenda_item[title]"]');
setTimeout(() => {
- this.element.scrollIntoView();
+ this.element.scrollIntoView({ block: 'center' });
if (titleInput) {
(titleInput as HTMLInputElement).focus();
}