]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
window/Edit: accept bodyPadding from config
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 9 Apr 2020 14:10:42 +0000 (16:10 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 18 Apr 2020 17:05:52 +0000 (19:05 +0200)
this is sometimes useful, e.g. when using a tabpanel in an edit window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
window/Edit.js

index 4f236ed52bc8f7c02a713c4c7c685b767a62f816..d21c1650e4eb009286b4daf26217b7a1050fc36b 100644 (file)
@@ -233,7 +233,7 @@ Ext.define('Proxmox.window.Edit', {
            url: me.url,
            method: me.method || 'PUT',
            trackResetOnLoad: true,
-           bodyPadding: 10,
+           bodyPadding: me.bodyPadding !== undefined ? me.bodyPadding : 10,
            border: false,
            defaults: Ext.apply({}, me.defaults, {
                border: false