BUGFIX: Updated TreeSelectorField to work properly within CTF popups

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63549 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-10-02 22:18:14 +00:00
parent f8c1f84a0d
commit 7574120f15

View File

@ -96,7 +96,11 @@ TreeDropdownField.prototype = {
break;
}
}
}
}
// This iframe stretching doesn't work with the greybox
if(this.iframeObj.id == 'GB_frame') return;
var desiredHeight = Position.cumulativeOffset(this.itemTree)[1] + this.itemTree.offsetHeight + 2;
if(this.iframeObj && desiredHeight > this.iframeObj.offsetHeight) {
this.iframeObj.oldHeight = this.iframeObj.offsetHeight;