mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX Fixed overflow settings in jQuery.fitheighttoparent
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@103292 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
21aa2c6729
commit
d565c5021b
@ -23,6 +23,7 @@ jQuery.fn.extend({
|
||||
if($this.is(':visible') && $this.parent().is(':visible')) {
|
||||
|
||||
// we set overflow = hidden so that large children don't muck things up in IE6 box model
|
||||
var origParentOverflow = $this.parent().css('overflow');
|
||||
$this.parent().css('overflow', 'hidden');
|
||||
|
||||
// get height from parent without any margins as a starting point,
|
||||
@ -47,6 +48,9 @@ jQuery.fn.extend({
|
||||
|
||||
// set new height
|
||||
$this.height(height);
|
||||
|
||||
// Reset overflow
|
||||
$this.parent().css('overflow', origParentOverflow);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user