diff options
author | Nivesh Rajbhandari | 2012-05-11 13:31:23 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-05-11 13:31:23 -0700 |
commit | 0fc470ad85e435ff6e66f05d9de1cad2b2ff91c8 (patch) | |
tree | be54e3f0fe32b87442cd02e3e8c257abbd15b3db | |
parent | 6abfeed78ddae26f04531cddbcb560451891c412 (diff) | |
download | ninja-0fc470ad85e435ff6e66f05d9de1cad2b2ff91c8.tar.gz |
Fixing drawing in nested divs.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-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 | ///////////////////////////////////////////////////////// |