]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
InputPanel: allow 4 column layout
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 28 Feb 2017 15:31:57 +0000 (16:31 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 28 Feb 2017 15:31:57 +0000 (16:31 +0100)
panel/InputPanel.js

index 2635a6d4cec7f2ed5dfc7599889d8113e92f45b1..4add54d1aa889682a430e67146073f865bd44b61 100644 (file)
@@ -74,6 +74,42 @@ Ext.define('Proxmox.panel.InputPanel', {
                }
            ];
            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) {
            me.columns = 2;
            items = [