[pmg-devel] [PATCH pmg-gui] Add flex to domain lists
Stoiko Ivanov
s.ivanov at proxmox.com
Mon Feb 3 19:21:30 CET 2020
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 at proxmox.com>
---
Tested by adding 80 domains to each of the domain-lists:
* Relay Domains had the scrollbars without any modification, the others
were fixed by the patch
Would be grateful for feedback, alternative solutions
js/MailProxyDKIMPanel.js | 3 ++-
js/MailProxyTLSPanel.js | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/js/MailProxyDKIMPanel.js b/js/MailProxyDKIMPanel.js
index ebf9a4a..c5cea82 100644
--- a/js/MailProxyDKIMPanel.js
+++ b/js/MailProxyDKIMPanel.js
@@ -31,7 +31,8 @@ Ext.define('PMG.MailProxyDKIMPanel', {
});
var DKIMDomains = Ext.create('PMG.DKIMDomains', {
- title: gettext('Sign Domains')
+ title: gettext('Sign Domains'),
+ flex: 1
});
me.items = [ DKIMSettings, DKIMDomains ];
diff --git a/js/MailProxyTLSPanel.js b/js/MailProxyTLSPanel.js
index cc24a91..5f5c367 100644
--- a/js/MailProxyTLSPanel.js
+++ b/js/MailProxyTLSPanel.js
@@ -22,7 +22,8 @@ Ext.define('PMG.MailProxyTLSPanel', {
});
var tlsDomains = Ext.create('PMG.MailProxyTLSDomains', {
- title: gettext('TLS Domain Policy')
+ title: gettext('TLS Domain Policy'),
+ flex: 1
});
me.items = [ tlsSettings, tlsDomains ];
--
2.20.1
More information about the pmg-devel
mailing list