aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
diff options
context:
space:
mode:
authorJonathan Duran2012-04-24 08:46:22 -0700
committerJonathan Duran2012-04-24 08:46:22 -0700
commit47488a6ff1b7fc32e2485b3dd82afe207b936b35 (patch)
treeff84f8f08d7c38c1b729ba89e0670d78249d79ef /js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
parent12fadd1494a9b5fcdaa17fde2f4847277237cf79 (diff)
downloadninja-47488a6ff1b7fc32e2485b3dd82afe207b936b35.tar.gz
Turn on width and height as tweenable properties
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js')
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
index e79602e7..e46a5eb0 100644
--- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
+++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
@@ -578,6 +578,8 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
578 newTween.tweenData.tweenedProperties = []; 578 newTween.tweenData.tweenedProperties = [];
579 newTween.tweenData.tweenedProperties["top"] = this.animatedElement.offsetTop; 579 newTween.tweenData.tweenedProperties["top"] = this.animatedElement.offsetTop;
580 newTween.tweenData.tweenedProperties["left"] = this.animatedElement.offsetLeft; 580 newTween.tweenData.tweenedProperties["left"] = this.animatedElement.offsetLeft;
581 newTween.tweenData.tweenedProperties["width"] = this.animatedElement.offsetWidth;
582 newTween.tweenData.tweenedProperties["height"] = this.animatedElement.offsetHeight;
581 this.tweens.push(newTween); 583 this.tweens.push(newTween);
582 } else { 584 } else {
583 newTween.tweenData.spanWidth = clickPos - this.tweens[this.tweens.length - 1].tweenData.keyFramePosition; 585 newTween.tweenData.spanWidth = clickPos - this.tweens[this.tweens.length - 1].tweenData.keyFramePosition;
@@ -588,6 +590,8 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
588 newTween.tweenData.tweenedProperties = []; 590 newTween.tweenData.tweenedProperties = [];
589 newTween.tweenData.tweenedProperties["top"] = this.animatedElement.offsetTop; 591 newTween.tweenData.tweenedProperties["top"] = this.animatedElement.offsetTop;
590 newTween.tweenData.tweenedProperties["left"] = this.animatedElement.offsetLeft; 592 newTween.tweenData.tweenedProperties["left"] = this.animatedElement.offsetLeft;
593 newTween.tweenData.tweenedProperties["width"] = this.animatedElement.offsetWidth;
594 newTween.tweenData.tweenedProperties["height"] = this.animatedElement.offsetHeight;
591 this.tweens.push(newTween); 595 this.tweens.push(newTween);
592 596
593 // update the animation duration 597 // update the animation duration