Files
proxmox-git-pve-manager/www/manager6/sdn/Status.js
T
dualfroz ed1aaf0bef fix #5352: ui: sdn: status: make the list scrollable
The status grid is the only item of a vbox layout, but has no flex set.
So it gets as high as all its rows need, and if those do not fit on the
screen, the rest is cut off without any way to scroll to them.

Let the grid fill the available height, so it shows a scrollbar
instead.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-10-03 01:19:56 +02:00

42 lines
1001 B
JavaScript

Ext.define('PVE.sdn.Status', {
extend: 'Ext.panel.Panel',
alias: 'widget.pveSDNStatus',
onlineHelp: 'chapter_pvesdn',
layout: {
type: 'vbox',
align: 'stretch',
},
initComponent: function () {
var me = this;
me.rstore = Ext.create('Proxmox.data.ObjectStore', {
interval: me.interval,
model: 'pve-sdn-status',
storeid: 'pve-store-' + ++Ext.idSeed,
groupField: 'type',
proxy: {
type: 'proxmox',
url: '/api2/json/cluster/resources',
},
});
me.items = [
{
xtype: 'pveSDNStatusView',
title: gettext('Status'),
rstore: me.rstore,
border: 0,
collapsible: true,
padding: '0 0 20 0',
flex: 1,
},
];
me.callParent();
me.on('activate', me.rstore.startUpdate);
},
});