From: Alexander Ebert Date: Mon, 24 Oct 2016 16:12:42 +0000 (+0200) Subject: Working around layout rounding errors X-Git-Tag: 3.0.0_Beta_4~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c11e87d62e8ad807d99ff0062d9124c848a5b73b;p=GitHub%2FWoltLab%2FWCF.git Working around layout rounding errors --- 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 {