Roo/bootstrap/NavProgressBar.js
authoredward <edward@roojs.com>
Tue, 15 Mar 2016 06:43:49 +0000 (14:43 +0800)
committeredward <edward@roojs.com>
Tue, 15 Mar 2016 06:43:49 +0000 (14:43 +0800)
Roo/bootstrap/NavProgressBar.js

index 5cc44ee..9022ee6 100644 (file)
@@ -104,13 +104,23 @@ Roo.extend(Roo.bootstrap.NavProgressBar, Roo.bootstrap.Component,  {
             var top = new Roo.bootstrap.Element({
                 tag : 'div',
                 cls : 'roo-navigation-bar-text',
-                html : (typeof(cfg.position) != 'undefined' && cfg.position == 'top') ? cfg.html : ''
+                cn : [
+                    {
+                        tag : 'span',
+                        html : (typeof(cfg.position) != 'undefined' && cfg.position == 'top') ? cfg.html : ''
+                    }
+                ]
             });
             
             var bottom = new Roo.bootstrap.Element({
                 tag : 'div',
                 cls : 'roo-navigation-bar-text',
-                html : (typeof(cfg.position) != 'undefined' && cfg.position == 'top') ? '' : cfg.html
+                cn : [
+                    {
+                        tag : 'span',
+                        html : (typeof(cfg.position) != 'undefined' && cfg.position == 'top') ? '' : cfg.html
+                    }
+                ]
             });
             
             top.onRender(this.el.select('.roo-navigation-top-bar', true).first(), null);