Roo/bootstrap/TabPanel.js
authorAlan Knowles <alan@roojs.com>
Wed, 4 Feb 2015 01:59:31 +0000 (09:59 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 4 Feb 2015 01:59:31 +0000 (09:59 +0800)
Roo/bootstrap/TabPanel.js

index 7231340..df86f1e 100644 (file)
@@ -78,7 +78,10 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
         // tabgroup.
         var p = this.parent();
         if (typeof(p.navId) != 'undefined') {
-            
+            // not really needed.. but just in case.. parent should be a NavGroup.
+            var tg = Roo.bootstrap.TabGroup.get(p.navId);
+            this.navId = this.navId || p.navId;
+            tg.register(this);
         }