[pve-devel] [PATCH 6/8] align numeric fields right

Stefan Priebe s.priebe at profihost.ag
Wed Apr 24 10:45:22 CEST 2013


Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
---
 www/manager/data/ResourceStore.js |   27 ++++++++++++++++++---------
 1 file changed, 18 insertions(+), 9 deletions(-)

diff --git a/www/manager/data/ResourceStore.js b/www/manager/data/ResourceStore.js
index d8cb653..9a27b38 100644
--- a/www/manager/data/ResourceStore.js
+++ b/www/manager/data/ResourceStore.js
@@ -93,7 +93,8 @@ Ext.define('PVE.data.ResourceStore', {
 		type: 'integer',
 		renderer: PVE.Utils.render_disk_usage,
 		sortable: true,
-		width: 100
+		width: 100,
+		align: 'right',
 	    },
 	    maxdisk: {
 		header: gettext('Disk size'),
@@ -101,14 +102,16 @@ Ext.define('PVE.data.ResourceStore', {
 		renderer: PVE.Utils.render_size_int,
 		sortable: true,
 		hidden: true,
-		width: 100
+		width: 100,
+		align: 'right',
 	    },
 	    mem: {
 		header: gettext('Memory usage'),
 		type: 'integer',
 		renderer: PVE.Utils.render_mem_usage,
 		sortable: true,
-		width: 100
+		width: 100,
+		align: 'right',
 	    },
 	    maxmem: {
 		header: gettext('Memory size'),
@@ -116,7 +119,8 @@ Ext.define('PVE.data.ResourceStore', {
 		renderer: PVE.Utils.render_size_int,
 		hidden: true,
 		sortable: true,
-		width: 100
+		width: 100,
+		align: 'right',
 	    },
 	    cpu: {
 		header: gettext('CPU usage'),
@@ -130,7 +134,8 @@ Ext.define('PVE.data.ResourceStore', {
 		type: 'integer',
 		hidden: true,
 		sortable: true,
-		width: 60
+		width: 60,
+		align: 'right',
 	    },
 	    diskread: {
 		header: 'Total Disk Read',
@@ -138,7 +143,8 @@ Ext.define('PVE.data.ResourceStore', {
 		hidden: true,
 		sortable: true,
 		renderer: PVE.Utils.format_size,
-		width: 100
+		width: 100,
+		align: 'right',
 	    },
 	    diskwrite: {
 		header: 'Total Disk Write',
@@ -146,7 +152,8 @@ Ext.define('PVE.data.ResourceStore', {
 		hidden: true,
 		sortable: true,
 		renderer: PVE.Utils.format_size,
-		width: 100
+		width: 100,
+		align: 'right',
 	    },
 	    netin: {
 		header: 'Total NetIn',
@@ -154,7 +161,8 @@ Ext.define('PVE.data.ResourceStore', {
 		hidden: true,
 		sortable: true,
 		renderer: PVE.Utils.format_size,
-		width: 100
+		width: 100,
+		align: 'right',
 	    },
 	    netout: {
 		header: 'Total NetOut',
@@ -162,7 +170,8 @@ Ext.define('PVE.data.ResourceStore', {
 		hidden: true,
 		sortable: true,
 		renderer: PVE.Utils.format_size,
-		width: 100
+		width: 100,
+		align: 'right',
 	    },
 	    template: {
 		header: 'template',
-- 
1.7.10.4



More information about the pve-devel mailing list