BUGFIX Fixed non-object or not null error in TreeSelectorField

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64736 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-10-24 02:05:54 +00:00
parent 6fc6b63a63
commit ffbd526bbb

View File

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