ext5migrate: replace obsolete 'margins' parameter with 'margin'

As mentioned in
http://docs.sencha.com/extjs/5.1/whats_new/5.0/extjs_upgrade_guide.html
the 'margins' component parameter is now obsolete.
This commit is contained in:
Emmanuel Kasper 2015-05-19 08:36:59 +02:00 committed by Dietmar Maurer
parent 5ea3004303
commit f01259ee05

View File

@ -325,7 +325,7 @@ Ext.define('PVE.StdWorkspace', {
var createVM = Ext.createWidget('button', { var createVM = Ext.createWidget('button', {
pack: 'end', pack: 'end',
margins: '3 5 0 0', margin: '3 5 0 0',
baseCls: 'x-btn', baseCls: 'x-btn',
text: gettext("Create VM"), text: gettext("Create VM"),
disabled: !caps.vms['VM.Allocate'], disabled: !caps.vms['VM.Allocate'],
@ -337,7 +337,7 @@ Ext.define('PVE.StdWorkspace', {
var createCT = Ext.createWidget('button', { var createCT = Ext.createWidget('button', {
pack: 'end', pack: 'end',
margins: '3 5 0 0', margin: '3 5 0 0',
baseCls: 'x-btn', baseCls: 'x-btn',
text: gettext("Create CT"), text: gettext("Create CT"),
disabled: !caps.vms['VM.Allocate'], disabled: !caps.vms['VM.Allocate'],
@ -371,10 +371,10 @@ Ext.define('PVE.StdWorkspace', {
baseCls: 'x-plain' baseCls: 'x-plain'
}, },
border: false, border: false,
margins: '2 0 5 0', margin: '2 0 5 0',
items: [ items: [
{ {
margins: '0 0 0 4', margin: '0 0 0 4',
html: '<a class="x-unselectable" target=_blank href="http://www.proxmox.com">' + html: '<a class="x-unselectable" target=_blank href="http://www.proxmox.com">' +
'<img height=30 width=209 src="/pve2/images/proxmox_logo.png"/></a>' '<img height=30 width=209 src="/pve2/images/proxmox_logo.png"/></a>'
}, },
@ -386,13 +386,13 @@ Ext.define('PVE.StdWorkspace', {
}, },
{ {
pack: 'end', pack: 'end',
margins: '8 10 0 10', margin: '8 10 0 10',
id: 'userinfo', id: 'userinfo',
stateful: false stateful: false
}, },
{ {
pack: 'end', pack: 'end',
margins: '3 5 0 0', margin: '3 5 0 0',
xtype: 'button', xtype: 'button',
baseCls: 'x-btn', baseCls: 'x-btn',
text: gettext("Logout"), text: gettext("Logout"),
@ -415,7 +415,7 @@ Ext.define('PVE.StdWorkspace', {
layout: { type: 'fit' }, layout: { type: 'fit' },
border: false, border: false,
stateful: false, stateful: false,
margins: '0 5 0 0', margin: '0 5 0 0',
items: [] items: []
}, },
{ {
@ -423,7 +423,7 @@ Ext.define('PVE.StdWorkspace', {
xtype: 'container', xtype: 'container',
border: false, border: false,
layout: { type: 'vbox', align: 'stretch' }, layout: { type: 'vbox', align: 'stretch' },
margins: '0 0 0 5', margin: '0 0 0 5',
split: true, split: true,
width: 200, width: 200,
items: [ selview, rtree ] items: [ selview, rtree ]
@ -431,7 +431,7 @@ Ext.define('PVE.StdWorkspace', {
{ {
// xtype: 'pveStatusPanel', // xtype: 'pveStatusPanel',
region: 'south', region: 'south',
margins:'0 5 5 5', margin:'0 5 5 5',
height: 200, height: 200,
split:true split:true
} }