aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/3D
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-11 13:33:23 -0700
committerValerio Virgillito2012-05-11 13:33:23 -0700
commit647a7cf0697debe7b3d6fa0d68cd6b37996d6b59 (patch)
treebe54e3f0fe32b87442cd02e3e8c257abbd15b3db /js/helper-classes/3D
parent5d154f12287dcc1e8a4125b931d4f36e633d6907 (diff)
parent53c703ee8116433723e02e915eed6a0ee4418ca2 (diff)
downloadninja-647a7cf0697debe7b3d6fa0d68cd6b37996d6b59.tar.gz
Merge pull request #220 from mqg734/Dom-Architecture
Silly logic that caused drawing in nested containers to break.
Diffstat (limited to 'js/helper-classes/3D')
-rwxr-xr-xjs/helper-classes/3D/view-utils.js3
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 /////////////////////////////////////////////////////////