mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-06-12 00:39:05 +00:00

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>
37 lines
750 B
JavaScript
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']);
|
|
}
|
|
});
|