Roo/LayoutRegion.js
authorAlan Knowles <alan@akbkhome.com>
Sun, 31 Jul 2011 05:08:10 +0000 (13:08 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 31 Jul 2011 05:08:10 +0000 (13:08 +0800)
Roo/LayoutRegion.js

index 09f2561..3cb67ba 100644 (file)
@@ -354,12 +354,17 @@ Roo.extend(Roo.LayoutRegion, Roo.BasicLayoutRegion, {
         // overridden
     },
 
-    initTabs : function(){
+    initTabs : function()
+    {
         this.bodyEl.setStyle("overflow", "hidden");
-        var ts = new Roo.TabPanel(this.bodyEl.dom, {
-            tabPosition: this.bottomTabs ? 'bottom' : 'top',
-            disableTooltips: this.config.disableTabTips
-        });
+        var ts = new Roo.TabPanel(
+                this.bodyEl.dom,
+                {
+                    tabPosition: this.bottomTabs ? 'bottom' : 'top',
+                    disableTooltips: this.config.disableTabTips,
+                    toolbar : this.config.toolbar
+                }
+        );
         if(this.config.hideTabs){
             ts.stripWrap.setDisplayed(false);
         }