From 8d066ca9a18a39a276feb56df7a7078bc05c8bac Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 3 Jan 2017 19:31:50 +0100 Subject: [PATCH] Dialog height calculation was out-of-sync --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); -- 2.20.1