[pve-devel] [PATCH manager v2 09/10] Make room in QemuWizard and Edit Window so that the larger combo boxes properly fit
Emmanuel Kasper
e.kasper at proxmox.com
Tue Sep 12 14:44:48 CEST 2017
This will benefit the BusTypeSelector, the DiskFormatSelector, the CD FileSelector,
and possibily other long fields like vm name, pool name.
---
www/manager6/form/ControllerSelector.js | 4 ++--
www/manager6/qemu/CDEdit.js | 3 +++
www/manager6/qemu/CreateWizard.js | 1 +
www/manager6/qemu/HDEdit.js | 3 +++
www/manager6/window/Edit.js | 3 +++
5 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/www/manager6/form/ControllerSelector.js b/www/manager6/form/ControllerSelector.js
index a2298fd8..a3205632 100644
--- a/www/manager6/form/ControllerSelector.js
+++ b/www/manager6/form/ControllerSelector.js
@@ -104,7 +104,7 @@ Ext.define('PVE.form.ControllerSelector', {
xtype: 'pveBusSelector',
name: 'controller',
value: PVE.qemu.OSDefaults.generic.busType,
- flex: 2,
+ flex: 1,
listeners: {
change: function(t, value) {
if (!me.rendered || !value) {
@@ -119,10 +119,10 @@ Ext.define('PVE.form.ControllerSelector', {
{
xtype: 'pveIntegerField',
name: 'deviceid',
+ width: 50,
minValue: 0,
maxValue: PVE.form.ControllerSelector.maxIds.ide,
value: '0',
- flex: 1,
validator: function(value) {
/*jslint confusion: true */
if (!me.rendered) {
diff --git a/www/manager6/qemu/CDEdit.js b/www/manager6/qemu/CDEdit.js
index 51921b8d..0c660a1d 100644
--- a/www/manager6/qemu/CDEdit.js
+++ b/www/manager6/qemu/CDEdit.js
@@ -147,6 +147,9 @@ Ext.define('PVE.qemu.CDInputPanel', {
Ext.define('PVE.qemu.CDEdit', {
extend: 'PVE.window.Edit',
+ fieldDefaults: {
+ width: 140
+ },
initComponent : function() {
var me = this;
diff --git a/www/manager6/qemu/CreateWizard.js b/www/manager6/qemu/CreateWizard.js
index 944309a6..a01fc81b 100644
--- a/www/manager6/qemu/CreateWizard.js
+++ b/www/manager6/qemu/CreateWizard.js
@@ -2,6 +2,7 @@ Ext.define('PVE.qemu.CreateWizard', {
extend: 'PVE.window.Wizard',
alias: 'widget.pveQemuCreateWizard',
qemuScsiController: undefined,
+ width: 680,
controller: {
diff --git a/www/manager6/qemu/HDEdit.js b/www/manager6/qemu/HDEdit.js
index 9fbbc763..5d4e7c89 100644
--- a/www/manager6/qemu/HDEdit.js
+++ b/www/manager6/qemu/HDEdit.js
@@ -300,6 +300,9 @@ Ext.define('PVE.qemu.HDEdit', {
extend: 'PVE.window.Edit',
isAdd: true,
+ fieldDefaults: {
+ width: 140
+ },
initComponent : function() {
var me = this;
diff --git a/www/manager6/window/Edit.js b/www/manager6/window/Edit.js
index 9a026683..9941c5d1 100644
--- a/www/manager6/window/Edit.js
+++ b/www/manager6/window/Edit.js
@@ -259,6 +259,9 @@ Ext.define('PVE.window.Edit', {
colwidth += me.fieldDefaults.labelWidth - 100;
}
+ if (me.fieldDefaults && me.fieldDefaults.width) {
+ colwidth += me.fieldDefaults.width - 100;
+ }
var twoColumn = items[0].column1 || items[0].column2;
--
2.11.0
More information about the pve-devel
mailing list