mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
229ab4609f
commit
9df87f3a88
@ -62,7 +62,6 @@ var ss_MainLayout;
|
|||||||
$(window).unload(function(){ layoutState.save('ss_MainLayout');});
|
$(window).unload(function(){ layoutState.save('ss_MainLayout');});
|
||||||
|
|
||||||
this._setupPinging();
|
this._setupPinging();
|
||||||
this._resizeChildren();
|
|
||||||
|
|
||||||
// HACK Delay resizing to give jquery-ui tabs a change their dimensions
|
// HACK Delay resizing to give jquery-ui tabs a change their dimensions
|
||||||
// through dynamically added css classes
|
// through dynamically added css classes
|
||||||
@ -70,9 +69,11 @@ var ss_MainLayout;
|
|||||||
var timerID = "timerLeftAndMainResize";
|
var timerID = "timerLeftAndMainResize";
|
||||||
if (window[timerID]) clearTimeout(window[timerID]);
|
if (window[timerID]) clearTimeout(window[timerID]);
|
||||||
window[timerID] = setTimeout(function() {
|
window[timerID] = setTimeout(function() {
|
||||||
|
console.debug(self._resizeChildren);
|
||||||
self._resizeChildren();
|
self._resizeChildren();
|
||||||
}, 200);
|
}, 200);
|
||||||
});
|
});
|
||||||
|
$(window).resize();
|
||||||
|
|
||||||
// If tab has no nested tabs, set overflow to auto
|
// If tab has no nested tabs, set overflow to auto
|
||||||
$(this).find('.tab').not(':has(.tab)').css('overflow', 'auto');
|
$(this).find('.tab').not(':has(.tab)').css('overflow', 'auto');
|
||||||
|
Loading…
Reference in New Issue
Block a user