From 94d03555a51653821b7da64b714a62258cd926d3 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 02:37:16 +0000 Subject: [PATCH] MINOR Moved tab overflow logic from TabSet.js into more specific CMSMain.js, its not necessary outside of a layout-managed CMS context git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92623 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/CMSMain.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/javascript/CMSMain.js b/javascript/CMSMain.js index 20e05a0b..23923a75 100644 --- a/javascript/CMSMain.js +++ b/javascript/CMSMain.js @@ -28,6 +28,9 @@ var ss_MainLayout; if (window[timerID]) clearTimeout(window[timerID]); window[timerID] = setTimeout(function() {self._resizeChildren();}, 200); }); + + // If tab has no nested tabs, set overflow to auto + $(this).find('.tab').not(':has(.tab)').css('overflow', 'auto'); this._resizeChildren();