diff options
author | Jonathan Duran | 2012-05-15 00:47:52 -0700 |
---|---|---|
committer | Jonathan Duran | 2012-05-15 00:47:52 -0700 |
commit | 847276c1e62d55c10d059683e7180635aa994890 (patch) | |
tree | c02fa05ff72bb68d05bbc5ebc70911a37fd97794 /js/panels/Timeline/Tween.reel/Tween.js | |
parent | 4438dae53bb528d94b9f21272f7c240dd546b0a8 (diff) | |
download | ninja-847276c1e62d55c10d059683e7180635aa994890.tar.gz |
support width and height tween prop on re-opening saved doc
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline/Tween.reel/Tween.js')
-rw-r--r-- | js/panels/Timeline/Tween.reel/Tween.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js index 63dabefe..3c0223c1 100644 --- a/js/panels/Timeline/Tween.reel/Tween.js +++ b/js/panels/Timeline/Tween.reel/Tween.js | |||
@@ -282,9 +282,14 @@ var Tween = exports.Tween = Montage.create(Component, { | |||
282 | // move animated element to correct position on stage | 282 | // move animated element to correct position on stage |
283 | var currentTop = this.tweenedProperties["top"] + "px"; | 283 | var currentTop = this.tweenedProperties["top"] + "px"; |
284 | var currentLeft = this.tweenedProperties["left"] + "px"; | 284 | var currentLeft = this.tweenedProperties["left"] + "px"; |
285 | var currentWidth = this.tweenedProperties["width"] + "px"; | ||
286 | var currentHeight = this.tweenedProperties["height"] + "px"; | ||
285 | 287 | ||
286 | this.application.ninja.elementMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "top", [currentTop], "Change", "tween"); | 288 | this.application.ninja.elementMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "top", [currentTop], "Change", "tween"); |
287 | this.application.ninja.elementMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "left", [currentLeft], "Change", "tween"); | 289 | this.application.ninja.elementMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "left", [currentLeft], "Change", "tween"); |
290 | this.application.ninja.elementMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "width", [currentWidth], "Change", "tween"); | ||
291 | this.application.ninja.elementMediator.setProperty([this.parentComponent.parentComponent.animatedElement], "height", [currentHeight], "Change", "tween"); | ||
292 | |||
288 | } | 293 | } |
289 | } | 294 | } |
290 | }, | 295 | }, |