From c11e87d62e8ad807d99ff0062d9124c848a5b73b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 24 Oct 2016 18:12:42 +0200 Subject: [PATCH] Working around layout rounding errors --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js index 01596f0109..8ef70ca2c5 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js @@ -473,6 +473,12 @@ define( formSubmit.classList.add('dialogFormSubmit'); unavailableHeight += DomUtil.outerHeight(formSubmit); + + // Calculated height can be a fractional value and depending on the + // browser the results can vary. By subtracting a single pixel we're + // working around fractional values, without visually changing anything. + unavailableHeight -= 1; + contentContainer.style.setProperty('margin-bottom', unavailableHeight + 'px', ''); } else { -- 2.20.1