[pve-devel] [PATCH widget-toolkit 1/2] window/Edit: accept bodyPadding from config

Dominik Csapak d.csapak at proxmox.com
Thu Apr 9 16:10:42 CEST 2020


this is sometimes useful, e.g. when using a tabpanel in an edit window

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 window/Edit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/window/Edit.js b/window/Edit.js
index 4f236ed..d21c165 100644
--- a/window/Edit.js
+++ b/window/Edit.js
@@ -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
-- 
2.20.1





More information about the pve-devel mailing list