From a235002ca1b3a4fd7e9f264479e4064f30599825 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 22 May 2018 08:49:55 +0200 Subject: [PATCH] Elastic: Unify min width for iframe'd dialogs Make sure dialog is min 576px on desktop so the form inside also uses desktop layout. --- skins/elastic/ui.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index e8a5676be..c39676e73 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -113,6 +113,10 @@ function rcube_elastic_ui() // Intercept jQuery-UI dialogs... $.ui && $.widget('ui.dialog', $.ui.dialog, { open: function() { + // .. to unify min width for iframe'd dialogs + if ($(this.element).is('.iframe')) { + this.options.width = Math.max(576, this.options.width); + } this._super(); // ... to re-style them on dialog open dialog_open(this);