Prevent updates to the dialog position during initialization
authorAlexander Ebert <ebert@woltlab.com>
Mon, 21 Aug 2023 08:50:38 +0000 (10:50 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 21 Aug 2023 08:50:38 +0000 (10:50 +0200)
commit185ad86aff62dea3169660d03aafb1da4819ce4e
treea61cee63ed6ba058be5c1bdf70cbd1db821ba24e
parent9719466bed29eb0379409db8d1838d19295bf3ea
Prevent updates to the dialog position during initialization

The initial value only needs to be set once, all other cases are already handled by the `ResizeObserver`, causing race conditions.

See https://www.woltlab.com/community/thread/301273-the-position-of-the-edit-thread-menu-is-not-always-centred/
ts/WoltLabSuite/Core/Ui/Dialog.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js