From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 313DF1FF0AF for ; Fri, 20 Nov 2026 16:15:39 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 9E087217E2; Fri, 20 Nov 2026 16:15:23 +0100 (CET) From: Dominik Csapak To: pve-devel@lists.proxmox.com Subject: [PATCH proxmox-widget-toolkit 1/2] utils: update column width: start each row at the left Date: Fri, 20 Nov 2026 16:15:13 +0100 Message-ID: <20261120151518.3386028-2-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120151518.3386028-1-d.csapak@proxmox.com> References: <20261120151518.3386028-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.268 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) 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 Message-ID-Hash: V7R2H4OGSAFU4HPBCYPCSZKYJW5L5BHM X-Message-ID-Hash: V7R2H4OGSAFU4HPBCYPCSZKYJW5L5BHM X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The summary and dashboard panels float their items in a column layout. If an item is taller than the others of its row, the first item of the next row gets caught on it and ends up further right, which moves all following items over by one column. This happens, for example, with the status panel of a guest summary in Proxmox VE, which grows with its content. Set the column count of the layout to the number of columns, which makes it clear the float of the first item of each row. Note that 'columnCount' is an undocumented, internal property of the ExtJS column layout, so this relies on its implementation. Signed-off-by: Dominik Csapak --- src/Utils.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Utils.js b/src/Utils.js index 6fa0a24..5b01ee2 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -694,6 +694,11 @@ Ext.define('Proxmox.Utils', { items.forEach((item) => { item.columnWidth = 1 / factor; }); + // Start each row at the left, the floated items would otherwise get caught on a + // taller item of the row above. This is a hack: 'columnCount' is an undocumented, + // internal property of the ExtJS column layout. If set, the layout gives each item + // whose index is a multiple of it 'clear: left' and removes 'clear' from the others. + container.getLayout().columnCount = factor; // we have to update the layout twice, since the first layout change // can trigger the scrollbar which reduces the amount of space left -- 2.47.3