]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
combo grid: reformat/place comment
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Jun 2021 16:02:08 +0000 (18:02 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Jun 2021 16:10:15 +0000 (18:10 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/form/ComboGrid.js

index 07ea5fe4b0bdc6fd88311061adb2fccee3ce9cc6..af04559308ce19e9bdad057aa55741a34b08ca6d 100644 (file)
@@ -425,14 +425,12 @@ Ext.define('Proxmox.form.ComboGrid', {
                if (me.enableLoadMask) {
                    delete me.enableLoadMask;
 
                if (me.enableLoadMask) {
                    delete me.enableLoadMask;
 
-                   // if the picker exists,
-                   // we reset its minheight to the saved let/0
-                   // we have to update the layout, otherwise the height
-                   // gets not recalculated
+                   // if the picker exists, we reset its minHeight to the previous saved one or 0
                    if (me.picker) {
                        me.picker.setMinHeight(me.savedMinHeight || 0);
                        Proxmox.Utils.setErrorMask(me.picker);
                        delete me.savedMinHeight;
                    if (me.picker) {
                        me.picker.setMinHeight(me.savedMinHeight || 0);
                        Proxmox.Utils.setErrorMask(me.picker);
                        delete me.savedMinHeight;
+                       // we have to update the layout, otherwise the height gets not recalculated
                        me.picker.updateLayout();
                    }
                }
                        me.picker.updateLayout();
                    }
                }