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
This commit is contained in:
Ingo Schommer 2009-11-21 03:16:59 +00:00
parent 94eada294e
commit 7580483eae

View File

@ -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();
},