From: Dominik Csapak <d.csapak@proxmox.com>
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 [thread overview]
Message-ID: <20261124091611.603041-1-d.csapak@proxmox.com> (raw)
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 <d.csapak@proxmox.com>
---
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
reply other threads:[~2026-11-24 9:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124091611.603041-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox