From 7580483eaeeb38aa571e067f3fa031f8d416a950 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 03:16:59 +0000 Subject: [PATCH] BUGFIX Only resizing form in LeftAndMain after showing tabs, to ensure we get the right dimensions. Concrete was applying the tabs styling too late and in an async fashion, so we cant use it here. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92752 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/LeftAndMain.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/javascript/LeftAndMain.js b/javascript/LeftAndMain.js index 139d317b..f833218a 100644 --- a/javascript/LeftAndMain.js +++ b/javascript/LeftAndMain.js @@ -71,9 +71,10 @@ var ss_MainLayout; // trigger resize whenever new tabs are shown // @todo This is called multiple times when tabs are loaded - this.find('.ss-tabset').bind('tabsshow', function() {self._resizeChildren();}); + this.find('.ss-tabset').live('tabsshow', function() {self._resizeChildren();}); - $('#Form_EditForm').bind('loadnewpage', function() {self._resizeChildren();}); + // @todo Doesn't resize properly if the response doesn't contain a tabset (see above) + //$('#Form_EditForm').bind('loadnewpage', function() {self._resizeChildren();}); this._super(); },