public inbox for pmg-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-gui] ServerStatus: update panel columsn dynamically
Date: Tue, 13 Jul 2021 09:20:59 +0200	[thread overview]
Message-ID: <20210713072059.611465-1-d.csapak@proxmox.com> (raw)

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





             reply	other threads:[~2021-07-13  7:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-13  7:20 Dominik Csapak [this message]
2021-07-13  8:00 ` [pmg-devel] applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210713072059.611465-1-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=pmg-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal