From 9df87f3a88aa66d912dd862ce519424ee6f3ba3d Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 3 Aug 2010 03:57:32 +0000 Subject: [PATCH] BUGFIX Fixed resizing of $('.LeftAndMain') on edit forms by triggering a delayed resize on first load git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@108832 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/LeftAndMain.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index ec6e23d8..20448e62 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -62,7 +62,6 @@ var ss_MainLayout; $(window).unload(function(){ layoutState.save('ss_MainLayout');}); this._setupPinging(); - this._resizeChildren(); // HACK Delay resizing to give jquery-ui tabs a change their dimensions // through dynamically added css classes @@ -70,9 +69,11 @@ var ss_MainLayout; var timerID = "timerLeftAndMainResize"; if (window[timerID]) clearTimeout(window[timerID]); window[timerID] = setTimeout(function() { + console.debug(self._resizeChildren); self._resizeChildren(); }, 200); }); + $(window).resize(); // If tab has no nested tabs, set overflow to auto $(this).find('.tab').not(':has(.tab)').css('overflow', 'auto');