From 7574120f158564ccdff7de391265c7f3966091e7 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 2 Oct 2008 22:18:14 +0000 Subject: [PATCH] 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 --- javascript/TreeSelectorField.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/javascript/TreeSelectorField.js b/javascript/TreeSelectorField.js index 3467e79f9..0ec79d640 100755 --- a/javascript/TreeSelectorField.js +++ b/javascript/TreeSelectorField.js @@ -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;