mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-06-25 13:02:15 +00:00
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:
parent
7eb1fb18ad
commit
ff7ee78453
@ -5,8 +5,7 @@ Ext.define('Proxmox.window.DiskSmart', {
|
|||||||
modal: true,
|
modal: true,
|
||||||
|
|
||||||
layout: {
|
layout: {
|
||||||
type: 'vbox',
|
type: 'fit',
|
||||||
align: 'stretch',
|
|
||||||
},
|
},
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 500,
|
height: 500,
|
||||||
@ -72,10 +71,9 @@ Ext.define('Proxmox.window.DiskSmart', {
|
|||||||
{
|
{
|
||||||
xtype: 'component',
|
xtype: 'component',
|
||||||
itemId: 'text',
|
itemId: 'text',
|
||||||
layout: {
|
|
||||||
type: 'fit',
|
|
||||||
},
|
|
||||||
hidden: true,
|
hidden: true,
|
||||||
|
autoScroll: true,
|
||||||
|
padding: 5,
|
||||||
style: {
|
style: {
|
||||||
'background-color': 'white',
|
'background-color': 'white',
|
||||||
'white-space': 'pre',
|
'white-space': 'pre',
|
||||||
|
Loading…
Reference in New Issue
Block a user