public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH widget-toolkit] toolkit: toolbar: add overflowHandler 'scroller' by default
@ 2026-11-24  9:16 Dominik Csapak
  0 siblings, 0 replies; only message in thread
From: Dominik Csapak @ 2026-11-24  9:16 UTC (permalink / raw)
  To: pve-devel

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





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-24  9:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24  9:16 [PATCH widget-toolkit] toolkit: toolbar: add overflowHandler 'scroller' by default Dominik Csapak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal