From 28073731b8f06a7176691ebf8f7b0a623c7ecb94 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 28 Oct 2017 13:38:16 +0200 Subject: [PATCH] Fix work-around for sub-pixel rendering of dialogs See #2295 --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js index a291324533..0926c12263 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js @@ -547,7 +547,7 @@ define( var floatWidth = parseFloat(window.getComputedStyle(data.content).width); var needsFix = (Math.round(floatWidth) % 2) !== 0; - data.content.classList[(needsFix ? 'add' : 'remove')]('jsWebKitFractionalPixel'); + data.content.parentNode.classList[(needsFix ? 'add' : 'remove')]('jsWebKitFractionalPixel'); } }, -- 2.20.1