Roo/ContentPanel.js
authorAlan Knowles <alan@roojs.com>
Fri, 18 Dec 2020 03:38:50 +0000 (11:38 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 18 Dec 2020 03:38:50 +0000 (11:38 +0800)
Roo/ContentPanel.js

index 806c382..68b9308 100644 (file)
@@ -65,9 +65,8 @@ Roo.ContentPanel = function(el, config, content){
                         {tag: "div", cls: "x-layout-inactive-content", id: config.id||el}, true);
         }
     }
-    if (this.style) {
-        this.el.applyStyles(this.style);
-        delete this.style;
+    if (config.style) {
+        this.el.applyStyles(config.style);
     }
     
     this.closable = false;