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
This commit is contained in:
Ingo Schommer 2010-08-03 03:57:32 +00:00
parent 229ab4609f
commit 9df87f3a88

View File

@ -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');