From: Alexander Ebert Date: Tue, 3 Jan 2017 18:31:50 +0000 (+0100) Subject: Dialog height calculation was out-of-sync X-Git-Tag: 3.0.0~67 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d066ca9a18a39a276feb56df7a7078bc05c8bac;p=GitHub%2FWoltLab%2FWCF.git Dialog height calculation was out-of-sync --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js index 8ef70ca2c5..1febc2fcc2 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js @@ -63,11 +63,10 @@ define( return true; }).bind(this); - enquire.register('(max-width: 767px)', { + UiScreen.on('screen-xs', { match: function() { _dialogFullHeight = true; }, unmatch: function() { _dialogFullHeight = false; }, - setup: function() { _dialogFullHeight = true; }, - deferSetup: true + setup: function() { _dialogFullHeight = true; } }); this._initStaticDialogs();