Fixed line-height calculation
authorAlexander Ebert <ebert@woltlab.com>
Wed, 21 Dec 2016 15:58:38 +0000 (16:58 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 21 Dec 2016 15:58:38 +0000 (16:58 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Mention.js

index 3520296fa99e53a1af571a04d3c8c53aae5d7fb5..8bce8ab7fe320857f459c7daf4c765962a7384fc 100644 (file)
@@ -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