[pve-devel] [PATCH pve-manager 1/3] Enlarge Object Grid first column default size
Emmanuel Kasper
e.kasper at proxmox.com
Tue May 10 15:01:54 CEST 2016
The framework value of 100 is not enough for many of our description
fields.
Setting this at the parent component level allow to remove
the end component setting.
---
www/manager6/dc/OptionView.js | 1 -
www/manager6/grid/FirewallOptions.js | 1 -
www/manager6/grid/ObjectGrid.js | 2 +-
www/manager6/lxc/Options.js | 1 -
www/manager6/qemu/HardwareView.js | 1 -
www/manager6/qemu/Options.js | 2 +-
6 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/www/manager6/dc/OptionView.js b/www/manager6/dc/OptionView.js
index 7a15185..2149cb0 100644
--- a/www/manager6/dc/OptionView.js
+++ b/www/manager6/dc/OptionView.js
@@ -179,7 +179,6 @@ Ext.define('PVE.dc.OptionView', {
Ext.apply(me, {
url: "/api2/json/cluster/options",
- cwidth1: 130,
interval: 1000,
selModel: sm,
tbar: [ edit_btn ],
diff --git a/www/manager6/grid/FirewallOptions.js b/www/manager6/grid/FirewallOptions.js
index af8d028..26ee373 100644
--- a/www/manager6/grid/FirewallOptions.js
+++ b/www/manager6/grid/FirewallOptions.js
@@ -219,7 +219,6 @@ Ext.define('PVE.FirewallOptions', {
Ext.apply(me, {
url: "/api2/json" + me.base_url,
- cwidth1: 150,
tbar: [ edit_btn ],
rows: rows,
listeners: {
diff --git a/www/manager6/grid/ObjectGrid.js b/www/manager6/grid/ObjectGrid.js
index 159c9c8..0415b9f 100644
--- a/www/manager6/grid/ObjectGrid.js
+++ b/www/manager6/grid/ObjectGrid.js
@@ -108,7 +108,7 @@ Ext.define('PVE.grid.ObjectGrid', {
columns: [
{
header: gettext('Name'),
- width: me.cwidth1 || 100,
+ width: me.cwidth1 || 200,
dataIndex: 'key',
renderer: me.renderKey
},
diff --git a/www/manager6/lxc/Options.js b/www/manager6/lxc/Options.js
index 523b5dd..d757540 100644
--- a/www/manager6/lxc/Options.js
+++ b/www/manager6/lxc/Options.js
@@ -191,7 +191,6 @@ Ext.define('PVE.lxc.Options', {
Ext.apply(me, {
url: "/api2/json/nodes/" + nodename + "/lxc/" + vmid + "/config",
selModel: sm,
- cwidth1: 150,
tbar: [ edit_btn ],
rows: rows,
listeners: {
diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js
index b2c399d..5fe0410 100644
--- a/www/manager6/qemu/HardwareView.js
+++ b/www/manager6/qemu/HardwareView.js
@@ -461,7 +461,6 @@ Ext.define('PVE.qemu.HardwareView', {
url: '/api2/json/' + 'nodes/' + nodename + '/qemu/' + vmid + '/pending',
interval: 5000,
selModel: sm,
- cwidth1: 170,
tbar: [
{
text: gettext('Add'),
diff --git a/www/manager6/qemu/Options.js b/www/manager6/qemu/Options.js
index 6918949..95d6eb1 100644
--- a/www/manager6/qemu/Options.js
+++ b/www/manager6/qemu/Options.js
@@ -378,7 +378,7 @@ Ext.define('PVE.qemu.Options', {
Ext.apply(me, {
url: "/api2/json/nodes/" + nodename + "/qemu/" + vmid + "/pending",
interval: 5000,
- cwidth1: 170,
+ cwidth1: 250,
tbar: [ edit_btn, revert_btn ],
rows: rows,
listeners: {
--
2.1.4
More information about the pve-devel
mailing list