Make form editor modals wider

[MAILPOET-1565]
This commit is contained in:
Pavel Dohnal
2018-12-06 10:12:19 +01:00
parent 1f19a851c3
commit b40916c9fa
5 changed files with 13 additions and 3 deletions

View File

@@ -1137,6 +1137,7 @@ WysijaForm.Widget = window.Class.create(WysijaForm.Block, {
title: window.MailPoet.I18n.t('editFieldSettings'),
template: window.jQuery('#form_template_field_settings').html(),
data: this.getData(),
minWidth: '500px',
onSuccess: function () {
var data = window.jQuery('#form_field_settings').mailpoetSerializeObject();
this.redraw(data);

View File

@@ -320,6 +320,9 @@ define('modal', ['mailpoet', 'jquery'],
jQuery('#mailpoet_popup_wrapper').css({
height: this.options.height
});
if (this.options.minWidth) {
jQuery('#mailpoet_popup').css({ minWidth: this.options.minWidth });
}
break;
case 'panel':
// set dimensions