mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-09 21:03:47 +00:00
InputPanel: allow 4 column layout
This commit is contained in:
parent
d1661fde3f
commit
cc315e82e8
@ -74,6 +74,42 @@ Ext.define('Proxmox.panel.InputPanel', {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
me.items = undefined;
|
me.items = undefined;
|
||||||
|
} else if (me.column4) {
|
||||||
|
me.columns = 4;
|
||||||
|
items = [
|
||||||
|
{
|
||||||
|
columnWidth: 0.25,
|
||||||
|
padding: '0 10 0 0',
|
||||||
|
layout: 'anchor',
|
||||||
|
items: me.column1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
columnWidth: 0.25,
|
||||||
|
padding: '0 10 0 0',
|
||||||
|
layout: 'anchor',
|
||||||
|
items: me.column2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
columnWidth: 0.25,
|
||||||
|
padding: '0 10 0 0',
|
||||||
|
layout: 'anchor',
|
||||||
|
items: me.column3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
columnWidth: 0.25,
|
||||||
|
padding: '0 0 0 10',
|
||||||
|
layout: 'anchor',
|
||||||
|
items: me.column4
|
||||||
|
}
|
||||||
|
];
|
||||||
|
if (me.columnB) {
|
||||||
|
items.push({
|
||||||
|
columnWidth: 1,
|
||||||
|
padding: '10 0 0 0',
|
||||||
|
layout: 'anchor',
|
||||||
|
items: me.columnB
|
||||||
|
});
|
||||||
|
}
|
||||||
} else if (me.column1) {
|
} else if (me.column1) {
|
||||||
me.columns = 2;
|
me.columns = 2;
|
||||||
items = [
|
items = [
|
||||||
|
Loading…
Reference in New Issue
Block a user