all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pmg-devel] [PATCH pmg-gui] ServerStatus: update panel columsn dynamically
@ 2021-07-13  7:20 Dominik Csapak
  2021-07-13  8:00 ` [pmg-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2021-07-13  7:20 UTC (permalink / raw)
  To: pmg-devel

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pmg-devel] applied: [PATCH pmg-gui] ServerStatus: update panel columsn dynamically
  2021-07-13  7:20 [pmg-devel] [PATCH pmg-gui] ServerStatus: update panel columsn dynamically Dominik Csapak
@ 2021-07-13  8:00 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2021-07-13  8:00 UTC (permalink / raw)
  To: Dominik Csapak, pmg-devel

On 13.07.21 09:20, Dominik Csapak wrote:
> 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@proxmox.com>
> ---
>  js/ServerStatus.js | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 

applied, thanks!

> @@ -159,6 +160,9 @@ Ext.define('PMG.ServerStatus', {
>  		},
>  	    ],
>  	    listeners: {
> +		resize: function(panel) {
> +		    Proxmox.Utils.updateColumns(panel);

replaced with newer function in followup
Proxmox.Utils.updateColumnWidth




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-13  8:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-13  7:20 [pmg-devel] [PATCH pmg-gui] ServerStatus: update panel columsn dynamically Dominik Csapak
2021-07-13  8:00 ` [pmg-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal