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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-05-03 09:38:29 +02:00
parent 7eb1fb18ad
commit ff7ee78453

View File

@ -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',