From 47488a6ff1b7fc32e2485b3dd82afe207b936b35 Mon Sep 17 00:00:00 2001 From: Jonathan Duran Date: Tue, 24 Apr 2012 08:46:22 -0700 Subject: Turn on width and height as tweenable properties Signed-off-by: Jonathan Duran --- js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/panels/Timeline/TimelineTrack.reel') 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, { newTween.tweenData.tweenedProperties = []; newTween.tweenData.tweenedProperties["top"] = this.animatedElement.offsetTop; newTween.tweenData.tweenedProperties["left"] = this.animatedElement.offsetLeft; + newTween.tweenData.tweenedProperties["width"] = this.animatedElement.offsetWidth; + newTween.tweenData.tweenedProperties["height"] = this.animatedElement.offsetHeight; this.tweens.push(newTween); } else { newTween.tweenData.spanWidth = clickPos - this.tweens[this.tweens.length - 1].tweenData.keyFramePosition; @@ -588,6 +590,8 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { newTween.tweenData.tweenedProperties = []; newTween.tweenData.tweenedProperties["top"] = this.animatedElement.offsetTop; newTween.tweenData.tweenedProperties["left"] = this.animatedElement.offsetLeft; + newTween.tweenData.tweenedProperties["width"] = this.animatedElement.offsetWidth; + newTween.tweenData.tweenedProperties["height"] = this.animatedElement.offsetHeight; this.tweens.push(newTween); // update the animation duration -- cgit v1.2.3