From: Alexander Ebert Date: Thu, 22 Dec 2016 12:35:03 +0000 (+0100) Subject: Fixed CSS stacking context on Android X-Git-Tag: 3.0.0_RC_3~76 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=51d1add24d3918d36226dd388f29af8a5c26b6aa;p=GitHub%2FWoltLab%2FWCF.git Fixed CSS stacking context on Android --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Screen.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Screen.js index cef32a5872..77008cc1d5 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Screen.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Screen.js @@ -117,12 +117,7 @@ define(['Core', 'Dictionary', 'Environment'], function(Core, Dictionary, Environ pageContainer.style.setProperty('top', '-' + _scrollTop + 'px', ''); } else { - pageContainer.style.setProperty('transform', 'translateY(-' + _scrollTop + 'px)', ''); - - if (_dialogContainer !== null) { - // the same value for `pageContainer` but in reverse - _dialogContainer.style.setProperty('transform', 'translateY(' + _scrollTop + 'px)', ''); - } + pageContainer.style.setProperty('margin-top', '-' + _scrollTop + 'px', ''); } document.documentElement.classList.add('disableScrolling'); @@ -147,11 +142,7 @@ define(['Core', 'Dictionary', 'Environment'], function(Core, Dictionary, Environ pageContainer.style.removeProperty('top'); } else { - pageContainer.style.removeProperty('transform'); - - if (_dialogContainer !== null) { - _dialogContainer.style.removeProperty('transform'); - } + pageContainer.style.removeProperty('margin-top'); } if (_scrollTop) {