From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id E1DDD1FF165 for ; Wed, 26 Feb 2025 17:08:17 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id BD13118DBB; Wed, 26 Feb 2025 17:08:16 +0100 (CET) From: Dominik Csapak To: pmg-devel@lists.proxmox.com Date: Wed, 26 Feb 2025 17:07:43 +0100 Message-Id: <20250226160743.2588-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.022 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pmg-devel] [PATCH pmg-gui] dkim selector view: fix viewing larger DKIM TXT records X-BeenThere: pmg-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Mail Gateway development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pmg-devel-bounces@lists.proxmox.com Sender: "pmg-devel" It seems the 'grow' feature of the textarea only works properly on user input, not when automatically filling it with data. So instead of trying to do that, which only ever clipped the record if it was too large, simply use a fixed size that is enough for 4096 bit sized keys and show a scrollbar for larger ones. With having a fixed height, and horizontal resizing a textarea also not working properly in an edit window, prevent the whole window from resizing. Signed-off-by: Dominik Csapak --- js/DKIMSettings.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/DKIMSettings.js b/js/DKIMSettings.js index e5f6c76..323f0b6 100644 --- a/js/DKIMSettings.js +++ b/js/DKIMSettings.js @@ -53,7 +53,7 @@ Ext.define('PMG.SelectorViewer', { title: gettext('Selector'), width: 800, - resizable: true, + resizable: false, items: [ { @@ -69,9 +69,7 @@ Ext.define('PMG.SelectorViewer', { { xtype: 'textarea', editable: false, - grow: true, - growMin: 150, - growMax: 400, + height: 220, fieldLabel: gettext('DNS TXT Record'), name: 'record', value: 'Could not read private key!', -- 2.39.5 _______________________________________________ pmg-devel mailing list pmg-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel