Permalink
Browse files

BUGFIX Only resizing form in LeftAndMain after showing tabs, to ensur…

…e 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
  • Loading branch information...
1 parent 94eada2 commit 7580483eaeeb38aa571e067f3fa031f8d416a950 @chillu chillu committed Nov 21, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 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();
},

0 comments on commit 7580483

Please sign in to comment.