Permalink
Browse files

MINOR Moved tab overflow logic from TabSet.js into more specific CMSM…

…ain.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
  • Loading branch information...
1 parent bc55ad3 commit 94d03555a51653821b7da64b714a62258cd926d3 @chillu chillu committed Nov 21, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 javascript/CMSMain.js
View
3 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();

0 comments on commit 94d0355

Please sign in to comment.