Roo/bootstrap/NavSimplebar.js
[roojs1] / Roo / bootstrap / NavSimplebar.js
index ab84b4f..808c655 100644 (file)
@@ -55,7 +55,7 @@ Roo.extend(Roo.bootstrap.NavSimplebar, Roo.bootstrap.Navbar,  {
         
         var cfg = {
             tag : this.tag || 'div',
-            cls : 'navbar navbar-expand-lg roo-navbar-simple'
+            cls : 'navbar roo-navbar-simple' //navbar-expand-lg ??
         };
        if (['light','white'].indexOf(this.weight) > -1) {
            cfg.cls += ['light','white'].indexOf(this.weight) > -1 ? ' navbar-light' : ' navbar-dark';
@@ -69,7 +69,7 @@ Roo.extend(Roo.bootstrap.NavSimplebar, Roo.bootstrap.Navbar,  {
        
        // i'm not actually sure these are really used - normally we add a navGroup to a navbar
        
-       if (Roo.bootstrap.version == 4 && this.xtype == 'NavSimpleBar') {
+       if (Roo.bootstrap.version == 4 && this.xtype == 'NavSimplebar') {
            return cfg;
        }
        
@@ -78,7 +78,7 @@ Roo.extend(Roo.bootstrap.NavSimplebar, Roo.bootstrap.Navbar,  {
        
         cfg.cn = [
             {
-                cls: 'nav nav-simplebar',
+                cls: 'nav nav-' + this.xtype,
                 tag : 'ul'
             }
         ];