pmg-gui/js/MailProxyTLSPanel.js
Stoiko Ivanov 4460d9531d Add flex to domain lists
By adding a flex value to the domain list items they become scrollable, should
the grid contain more entries than fit on the screen.

This fixes #2579.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-02-04 08:51:32 +01:00

37 lines
750 B
JavaScript

Ext.define('PMG.MailProxyTLSPanel', {
extend: 'Ext.panel.Panel',
alias: 'widget.pmgMailProxyTLSPanel',
layout: {
type: 'vbox',
align: 'stretch'
},
bodyPadding: '0 0 10 0',
defaults: {
collapsible: true,
animCollapse: false,
margin: '10 10 0 10'
},
initComponent: function() {
var me = this;
var tlsSettings = Ext.create('PMG.MailProxyTLS', {
title: gettext('Settings')
});
var tlsDomains = Ext.create('PMG.MailProxyTLSDomains', {
title: gettext('TLS Domain Policy'),
flex: 1
});
me.items = [ tlsSettings, tlsDomains ];
me.callParent();
tlsSettings.relayEvents(me, ['activate', 'deactivate', 'destroy']);
tlsDomains.relayEvents(me, ['activate', 'deactivate', 'destroy']);
}
});