From: Alexander Ebert Date: Wed, 21 Dec 2016 15:58:38 +0000 (+0100) Subject: Fixed line-height calculation X-Git-Tag: 3.0.0_RC_3~81 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c191d92b6931a2eff6b4f08733cbfbf51335cb1;p=GitHub%2FWoltLab%2FWCF.git Fixed line-height calculation --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Mention.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Mention.js index 3520296fa9..8bce8ab7fe 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Mention.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Mention.js @@ -139,7 +139,7 @@ define(['Ajax', 'Environment', 'Ui/CloseOverlay'], function(Ajax, Environment, U }; if (this._lineHeight === null) { - this._lineHeight = Math.round(rect.bottom - rect.top - (window.scrollY || window.pageYOffset)); + this._lineHeight = Math.round(rect.bottom - rect.top); } // restore caret position