ui: node/zfs: fix stretch and scroll in details window

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2018-11-12 12:26:38 +01:00
parent 8cfe208868
commit 50d5490f3a

View File

@ -1,3 +1,4 @@
/*jslint confusion: true*/
Ext.define('PVE.node.CreateZFS', { Ext.define('PVE.node.CreateZFS', {
extend: 'Proxmox.window.Edit', extend: 'Proxmox.window.Edit',
xtype: 'pveCreateZFS', xtype: 'pveCreateZFS',
@ -387,12 +388,15 @@ Ext.define('PVE.node.ZFSList', {
var devicetree = Ext.create('PVE.node.ZFSDevices', { var devicetree = Ext.create('PVE.node.ZFSDevices', {
title: gettext('Devices'), title: gettext('Devices'),
nodename: me.nodename, nodename: me.nodename,
flex: 1,
zpool: zpool zpool: zpool
}); });
var detailsgrid = Ext.create('PVE.node.ZFSStatus', { var detailsgrid = Ext.create('PVE.node.ZFSStatus', {
layout: 'fit', layout: 'fit',
nodename: me.nodename, nodename: me.nodename,
autoScroll: true,
flex: 0,
zpool: zpool zpool: zpool
}); });
@ -406,6 +410,10 @@ Ext.define('PVE.node.ZFSList', {
items:[{ items:[{
xtype: 'panel', xtype: 'panel',
region: 'center', region: 'center',
layout: {
type: 'vbox',
align: 'stretch'
},
items: [detailsgrid, devicetree], items: [detailsgrid, devicetree],
tbar: [{ tbar: [{
text: gettext('Reload'), text: gettext('Reload'),