From ff7ee784537780c76f369c4b69df43d214c30a7d Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 3 May 2021 09:38:29 +0200 Subject: [PATCH] disk smart: fix layout, enable autoscroll `layout: fit` does not much on a leaf item node, it's for children after all. So use it at top and enable autoscroll on the text component. Reported in the forum: https://forum.proxmox.com/threads/gui-smart-details-cannot-be-scrolled-down.88566/ Signed-off-by: Thomas Lamprecht --- src/window/DiskSmart.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/window/DiskSmart.js b/src/window/DiskSmart.js index 0145157..ae4f3d9 100644 --- a/src/window/DiskSmart.js +++ b/src/window/DiskSmart.js @@ -5,8 +5,7 @@ Ext.define('Proxmox.window.DiskSmart', { modal: true, layout: { - type: 'vbox', - align: 'stretch', + type: 'fit', }, width: 800, height: 500, @@ -72,10 +71,9 @@ Ext.define('Proxmox.window.DiskSmart', { { xtype: 'component', itemId: 'text', - layout: { - type: 'fit', - }, hidden: true, + autoScroll: true, + padding: 5, style: { 'background-color': 'white', 'white-space': 'pre',