Incorrect alignment of positioned elements when they are hidden
authorAlexander Ebert <ebert@woltlab.com>
Thu, 26 Aug 2021 14:06:18 +0000 (16:06 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 26 Aug 2021 14:06:18 +0000 (16:06 +0200)
commit0dd41832439d96ac42b8d425932aa074a4bfc840
tree4774456264b0dc5ce2db5f65732c91a209aa5df7
parent20ffa7d26815f65e5c7d9b71e380688c1c52a2d0
Incorrect alignment of positioned elements when they are hidden

The calculation did not consider the `display` attribute, causing the elements dimensions to be considered as `0x0` for the purpose of the calculation.

See https://community.woltlab.com/thread/291896-beitragsoptionen-verschoben/
ts/WoltLabSuite/Core/Ui/Alignment.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Alignment.js