Fix work-around for sub-pixel rendering of dialogs
authorMatthias Schmidt <gravatronics@live.com>
Sat, 28 Oct 2017 11:38:16 +0000 (13:38 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 28 Oct 2017 11:38:16 +0000 (13:38 +0200)
See #2295

wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js

index a291324533302aeb7f16a1dc757529cc3f7bcd41..0926c1226356f124fd0a4bd2b909de1a1ee92d7d 100644 (file)
@@ -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');
                        }
                },