diff options
Diffstat (limited to 'js/helper-classes/3D/view-utils.js')
-rwxr-xr-x | js/helper-classes/3D/view-utils.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/helper-classes/3D/view-utils.js b/js/helper-classes/3D/view-utils.js index 6da6de0e..22446403 100755 --- a/js/helper-classes/3D/view-utils.js +++ b/js/helper-classes/3D/view-utils.js | |||
@@ -354,14 +354,13 @@ exports.ViewUtils = Montage.create(Component, { | |||
354 | 354 | ||
355 | // transform the bounds up the tree | 355 | // transform the bounds up the tree |
356 | var child = elt; | 356 | var child = elt; |
357 | var parent = elt.offsetParent; | ||
358 | while ( child ) | 357 | while ( child ) |
359 | { | 358 | { |
360 | pt = this.childToParent( pt, child ); | 359 | pt = this.childToParent( pt, child ); |
361 | 360 | ||
362 | if (child === this._stageElement) break; | 361 | if (child === this._stageElement) break; |
363 | 362 | ||
364 | child = parent; | 363 | child = child.offsetParent; |
365 | } | 364 | } |
366 | 365 | ||
367 | ///////////////////////////////////////////////////////// | 366 | ///////////////////////////////////////////////////////// |