From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 01B436476C for ; Fri, 30 Oct 2020 13:48:40 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id E91F9139CB for ; Fri, 30 Oct 2020 13:48:39 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 46C37139BA for ; Fri, 30 Oct 2020 13:48:39 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 0DFFA45F83 for ; Fri, 30 Oct 2020 13:48:39 +0100 (CET) From: Aaron Lauterer To: pve-devel@lists.proxmox.com Date: Fri, 30 Oct 2020 13:48:38 +0100 Message-Id: <20201030124838.23655-2-a.lauterer@proxmox.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201030124838.23655-1-a.lauterer@proxmox.com> References: <20201030124838.23655-1-a.lauterer@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.010 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH widget-toolkit] InputPanel: fix column scaling behavior X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2020 12:48:40 -0000 When scaling the browsers content either via the browser itself or because the OS has a different scaling / DPI setting, it can happen that not all columns have enough space next to each other and thus the last column is moved further below. This happens especially on chromium bases browsers (e.g. chrome, edge). Setting the column width a tiny bit smaller helps to avoid this problem. Signed-off-by: Aaron Lauterer --- src/panel/InputPanel.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/panel/InputPanel.js b/src/panel/InputPanel.js index 0ac5e48..305bcad 100644 --- a/src/panel/InputPanel.js +++ b/src/panel/InputPanel.js @@ -95,25 +95,25 @@ Ext.define('Proxmox.panel.InputPanel', { me.columns = 4; items = [ { - columnWidth: 0.25, + columnWidth: 0.249, padding: '0 10 0 0', layout: 'anchor', items: me.column1, }, { - columnWidth: 0.25, + columnWidth: 0.249, padding: '0 10 0 0', layout: 'anchor', items: me.column2, }, { - columnWidth: 0.25, + columnWidth: 0.249, padding: '0 10 0 0', layout: 'anchor', items: me.column3, }, { - columnWidth: 0.25, + columnWidth: 0.249, padding: '0 0 0 10', layout: 'anchor', items: me.column4, @@ -131,13 +131,13 @@ Ext.define('Proxmox.panel.InputPanel', { me.columns = 2; items = [ { - columnWidth: 0.5, + columnWidth: 0.495, padding: '0 10 0 0', layout: 'anchor', items: me.column1, }, { - columnWidth: 0.5, + columnWidth: 0.495, padding: '0 0 0 10', layout: 'anchor', items: me.column2 || [], // allow empty column -- 2.20.1