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:
Ingo Schommer 2010-04-21 21:36:04 +00:00
parent 21aa2c6729
commit d565c5021b

View File

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