Elastic: Unify min width for iframe'd dialogs

Make sure dialog is min 576px on desktop so the form inside
also uses desktop layout.
pull/6302/head
Aleksander Machniak 6 years ago
parent 339121b121
commit a235002ca1

@ -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);

Loading…
Cancel
Save