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 2CB431FF066 for ; Tue, 24 Nov 2026 10:16:21 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id CBFCC21555; Tue, 24 Nov 2026 10:16:18 +0100 (CET) From: Dominik Csapak To: pve-devel@lists.proxmox.com Subject: [PATCH widget-toolkit] toolkit: toolbar: add overflowHandler 'scroller' by default Date: Tue, 24 Nov 2026 10:16:06 +0100 Message-ID: <20261124091611.603041-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.266 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: WF6ZY6SCFCMBEOT6SCNN2E4VTSGROHU5 X-Message-ID-Hash: WF6ZY6SCFCMBEOT6SCNN2E4VTSGROHU5 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: Having no overflowHandler on toolbars rarely make sense: If there is enough space they don't interfere with the toolbar, if there isn't enough space, one is necessary to properly show all elements. This overrides the default from 'null' to 'scroller'. If a component does not want this, it can set it to 'null' again, but that should be the minority of cases. Signed-off-by: Dominik Csapak --- src/Toolkit.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Toolkit.js b/src/Toolkit.js index 02429ef..aff46df 100644 --- a/src/Toolkit.js +++ b/src/Toolkit.js @@ -833,6 +833,14 @@ Ext.define('Proxmox.grid.column.Action', { }, }); +// Add the overflowHandler by default, otherwise every toolbar that +// might need the space has to add it. +Ext.define('Proxmox.toolbar.Toolbar', { + override: 'Ext.toolbar.Toolbar', + + overflowHandler: 'scroller', +}); + // force alert boxes to be rendered with an Error Icon // since Ext.Msg is an object and not a prototype, we need to override it // after the framework has been initiated -- 2.47.3