From 3c191d92b6931a2eff6b4f08733cbfbf51335cb1 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 21 Dec 2016 16:58:38 +0100 Subject: [PATCH] Fixed line-height calculation --- .../install/files/js/WoltLabSuite/Core/Ui/Redactor/Mention.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1