]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
input panel: Add drawing of layout
authorDominic Jäger <d.jaeger@proxmox.com>
Fri, 27 Nov 2020 11:08:12 +0000 (12:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Jan 2021 17:54:49 +0000 (18:54 +0100)
The drawing makes clear in a few seconds:
 - what columnT and columnB stand for
 - what additional containers and panels are created
 - to which of those the elements of column1, column2... go to

When you're in the JS debugger and lost overview of where in this
element hierarchy you are, you can quickly check xtype + layout. Then
consulting this drawing solves the mistery.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
src/panel/InputPanel.js

index 67f73524135080aca7d3a3c0d92ecf37ddcf6969..a9c7263aec4f15a05c6e7f9ac657f40d512985b5 100644 (file)
@@ -76,6 +76,20 @@ Ext.define('Proxmox.panel.InputPanel', {
        });
     },
 
+    /**
+     *  inputpanel, vbox
+     * +---------------------------------------------------------------------+
+     * |                             columnT                                 |
+     * +---------------------------------------------------------------------+
+     * |                          container, hbox                            |
+     * |  +---------------+---------------+---------------+---------------+  |
+     * |  |    column1    |    column2    |    column3    |    column4    |  |
+     * |  | panel, anchor | panel, anchor | panel, anchor | panel, anchor |  |
+     * |  +---------------+---------------+---------------+---------------+  |
+     * +---------------------------------------------------------------------+
+     * |                             columnB                                 |
+     * +---------------------------------------------------------------------+
+     */
     initComponent: function() {
        let me = this;