[pmg-devel] [PATCH pmg-gui] ServerStatus: update panel columsn dynamically
Dominik Csapak
d.csapak at proxmox.com
Tue Jul 13 09:20:59 CEST 2021
like we do in pve and pbs
for now the user cannot change the preferred columns and the default is 'auto'
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
js/ServerStatus.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/js/ServerStatus.js b/js/ServerStatus.js
index e91b3a7..1fb42ea 100644
--- a/js/ServerStatus.js
+++ b/js/ServerStatus.js
@@ -8,10 +8,11 @@ Ext.define('PMG.ServerStatus', {
scrollable: true,
- bodyPadding: '10 0 0 0',
+ bodyPadding: 5,
defaults: {
width: 700,
- padding: '0 0 10 10',
+ padding: 5,
+ columnWidth: 1,
},
layout: 'column',
@@ -159,6 +160,9 @@ Ext.define('PMG.ServerStatus', {
},
],
listeners: {
+ resize: function(panel) {
+ Proxmox.Utils.updateColumns(panel);
+ },
activate: function() {
rrdstore.startUpdate();
},
--
2.30.2
More information about the pmg-devel
mailing list