Removed an outdated workaround in dialogs for Chrome
authorAlexander Ebert <ebert@woltlab.com>
Sat, 23 Mar 2019 22:59:10 +0000 (23:59 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 23 Mar 2019 22:59:10 +0000 (23:59 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js

index d43a14dc95b485b8e4aa43eb9bd784163c794298..f25b31da26509ff604510c07f063d201cb711393 100644 (file)
@@ -579,16 +579,6 @@ define(
                        var maximumHeight = (window.innerHeight * (_dialogFullHeight ? 1 : 0.8)) - unavailableHeight;
                        contentContainer.style.setProperty('max-height', ~~maximumHeight + 'px', '');
                        
-                       // fix for a calculation bug in Chrome causing the scrollbar to overlap the border
-                       if (Environment.browser() === 'chrome') {
-                               if (data.content.scrollHeight > maximumHeight) {
-                                       data.content.style.setProperty('margin-right', '-1px', '');
-                               }
-                               else {
-                                       data.content.style.removeProperty('margin-right');
-                               }
-                       }
-                       
                        // Chrome and Safari use heavy anti-aliasing when the dialog's width
                        // cannot be evenly divided, causing the whole text to become blurry
                        if (Environment.browser() === 'chrome' || Environment.browser() === 'safari') {