[pmg-devel] [PATCH pmg-gui 2/4] {Attachment, Spam, Virus}Quarantine: fix layout for iframe

Dominik Csapak d.csapak at proxmox.com
Wed May 26 11:13:10 CEST 2021


in extjs 7.0 the css changed slightly so that we need to define
the 'fit' layout explicitely to maintain the full width/height

otherwise it can happen that the iframe gets cut off

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 js/AttachmentQuarantine.js | 1 +
 js/SpamQuarantine.js       | 1 +
 js/VirusQuarantine.js      | 1 +
 3 files changed, 3 insertions(+)

diff --git a/js/AttachmentQuarantine.js b/js/AttachmentQuarantine.js
index f1a9a54..6449012 100644
--- a/js/AttachmentQuarantine.js
+++ b/js/AttachmentQuarantine.js
@@ -146,6 +146,7 @@ Ext.define('PMG.AttachmentQuarantine', {
 	    title: gettext('Selected Mail'),
 	    border: false,
 	    region: 'center',
+	    layout: 'fit',
 	    split: true,
 	    reference: 'preview',
 	    disabled: true,
diff --git a/js/SpamQuarantine.js b/js/SpamQuarantine.js
index daa3a69..58cf74c 100644
--- a/js/SpamQuarantine.js
+++ b/js/SpamQuarantine.js
@@ -308,6 +308,7 @@ Ext.define('PMG.SpamQuarantine', {
 	    title: gettext('Selected Mail'),
 	    border: false,
 	    region: 'center',
+	    layout: 'fit',
 	    split: true,
 	    reference: 'preview',
 	    disabled: true,
diff --git a/js/VirusQuarantine.js b/js/VirusQuarantine.js
index d5753dd..6ff1c17 100644
--- a/js/VirusQuarantine.js
+++ b/js/VirusQuarantine.js
@@ -155,6 +155,7 @@ Ext.define('PMG.VirusQuarantine', {
 	    title: gettext('Selected Mail'),
 	    border: false,
 	    region: 'center',
+	    layout: 'fit',
 	    split: true,
 	    reference: 'preview',
 	    disabled: true,
-- 
2.20.1





More information about the pmg-devel mailing list