Roo/ContentPanel.js
authorChris <chris@roojs.com>
Mon, 21 Oct 2013 11:44:03 +0000 (19:44 +0800)
committerChris <chris@roojs.com>
Mon, 21 Oct 2013 11:44:03 +0000 (19:44 +0800)
Roo/ContentPanel.js

index ee29c4c..4571ad8 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,16 @@ 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.on('render', 
+                function() { 
+                        this.view.render(false, '',this); 
+                }, this); // render blank..
+    }
+    
+    
     this.fireEvent('render', this);
 };