Roo/ContentPanel.js
authorAlan Knowles <alan@roojs.com>
Fri, 30 Nov 2012 08:24:53 +0000 (16:24 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 30 Nov 2012 08:24:53 +0000 (16:24 +0800)
Roo/ContentPanel.js

index 5aed487..5ec3a17 100644 (file)
@@ -96,6 +96,14 @@ Roo.ContentPanel = function(el, config, content){
     }else{
         this.resizeEl = this.el;
     }
+    // handle view.xtype
+    
+    if (this.view && typeof(this.view.xtype) != 'undefined') {
+        this.view = Roo.factory(this.view);
+    }
+    
+    
+    
     this.addEvents({
         /**
          * @event activate