ui: node/zfs: fix up order of variable declaration to match grid order

It confused me twice and I enabled autoScroll on the wrong component,
so order it as it's layouted and remove the autoscroll completely,
not needed at all...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2018-11-12 12:31:44 +01:00
parent 50d5490f3a
commit 37e228da8c

View File

@ -385,6 +385,13 @@ Ext.define('PVE.node.ZFSList', {
show_detail: function(zpool) {
var me = this;
var detailsgrid = Ext.create('PVE.node.ZFSStatus', {
layout: 'fit',
nodename: me.nodename,
flex: 0,
zpool: zpool
});
var devicetree = Ext.create('PVE.node.ZFSDevices', {
title: gettext('Devices'),
nodename: me.nodename,
@ -392,13 +399,6 @@ Ext.define('PVE.node.ZFSList', {
zpool: zpool
});
var detailsgrid = Ext.create('PVE.node.ZFSStatus', {
layout: 'fit',
nodename: me.nodename,
autoScroll: true,
flex: 0,
zpool: zpool
});
var win = Ext.create('Ext.window.Window', {
modal: true,