Fix #6464 - card header
[roojs1] / Roo / bootstrap / Body.js
index 246ae3b..914481d 100644 (file)
@@ -2,40 +2,48 @@
  * - LGPL
  *
  * Body
- * 
+ *
  */
 
 /**
  * @class Roo.bootstrap.Body
  * @extends Roo.bootstrap.Component
  * Bootstrap Body class
- * 
+ *
  * @constructor
  * Create a new body
  * @param {Object} config The config object
  */
 
 Roo.bootstrap.Body = function(config){
+
+    config = config || {};
+
     Roo.bootstrap.Body.superclass.constructor.call(this, config);
-    this.el = Roo.get(document.body);
+    this.el = Roo.get(config.el ? config.el : document.body );
+    if (this.cls && this.cls.length) {
+        Roo.get(document.body).addClass(this.cls);
+    }
 };
 
 Roo.extend(Roo.bootstrap.Body, Roo.bootstrap.Component,  {
-      
+
+    is_body : true,// just to make sure it's constructed?
+
        autoCreate : {
         cls: 'container'
     },
     onRender : function(ct, position)
     {
+       /* Roo.log("Roo.bootstrap.Body - onRender");
         if (this.cls && this.cls.length) {
-            Roo.select('body').addClass(this.cls);
+            Roo.get(document.body).addClass(this.cls);
         }
         // style??? xttr???
+        */
     }
-    
-    
-   
-});
 
\ No newline at end of file
+
+
+
+});