Dialog height calculation was out-of-sync
authorAlexander Ebert <ebert@woltlab.com>
Tue, 3 Jan 2017 18:31:50 +0000 (19:31 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 3 Jan 2017 18:31:50 +0000 (19:31 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js

index 8ef70ca2c5c770c56c88e500521feb78fd507159..1febc2fcc21e7c0c44bfe43b2ceac8937afda85b 100644 (file)
@@ -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();