From: Marcel Werk Date: Mon, 29 Mar 2021 13:52:14 +0000 (+0200) Subject: Removed obsolete Chrome workaround for dialogs with scrollbars X-Git-Tag: 5.3.6~37 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5a3702f7e83db1f6c5f6f5563280f9ae85e14138;p=GitHub%2FWoltLab%2FWCF.git Removed obsolete Chrome workaround for dialogs with scrollbars --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js index c14feff923..4af7aa99f3 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js @@ -667,16 +667,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') {