mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
6fc6b63a63
commit
ffbd526bbb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user