Roo/form/ComboBoxArray.js
[roojs1] / Roo / ContentPanel.js
index ee29c4c..f2335cc 100644 (file)
@@ -135,15 +135,7 @@ Roo.ContentPanel = function(el, config, content){
         
     });
     
-    if (this.view && typeof(this.view.xtype) != 'undefined') {
-        this.view.el = this.el.appendChild(document.createElement("div"));
-        this.view = Roo.factory(this.view); 
-        this.view.render && this.on('render', 
-                function() { 
-                        this.view.render(false, '',this); 
-                }, this); // render blank..
-    }
-    
+
     
     
     if(this.autoScroll){
@@ -167,6 +159,13 @@ Roo.ContentPanel = function(el, config, content){
     
     Roo.ContentPanel.superclass.constructor.call(this);
     
+    if (this.view && typeof(this.view.xtype) != 'undefined') {
+        this.view.el = this.el.appendChild(document.createElement("div"));
+        this.view = Roo.factory(this.view); 
+        this.view.render  &&  this.view.render(false, '');  
+    }
+    
+    
     this.fireEvent('render', this);
 };