aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Tween.reel
diff options
context:
space:
mode:
authorKruti Shah2012-06-27 13:54:55 -0700
committerKruti Shah2012-06-27 13:54:55 -0700
commitdeefd070e5e6e793eef2c3d937e7b1a97b0f6830 (patch)
treee673f2a47dfab6d61c659ede2f125328640c9e1b /js/panels/Timeline/Tween.reel
parentefdca7dd7aa521e03f5d34348bcf250ccb8505c5 (diff)
downloadninja-deefd070e5e6e793eef2c3d937e7b1a97b0f6830.tar.gz
Bug Fix : Hot Text change from the CSS panel
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js/panels/Timeline/Tween.reel')
-rw-r--r--js/panels/Timeline/Tween.reel/Tween.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js
index 369b270a..89f18f98 100644
--- a/js/panels/Timeline/Tween.reel/Tween.js
+++ b/js/panels/Timeline/Tween.reel/Tween.js
@@ -203,6 +203,10 @@ var Tween = exports.Tween = Montage.create(Component, {
203 // temp - testing var 203 // temp - testing var
204 var useAbsolute = true; 204 var useAbsolute = true;
205 205
206 if(event.detail.type === "cssChange"){
207 event.detail.source="cssPanelChange"
208 }
209
206 if (event.detail.source && event.detail.source !== "tween") { 210 if (event.detail.source && event.detail.source !== "tween") {
207 211
208 if(this.parentComponent.parentComponent.isSubproperty){ 212 if(this.parentComponent.parentComponent.isSubproperty){
@@ -222,7 +226,7 @@ var Tween = exports.Tween = Montage.create(Component, {
222 setTweenProperties:{ 226 setTweenProperties:{
223 value:function (eventDetail) { 227 value:function (eventDetail) {
224 228
225 if (eventDetail.source === "SelectionTool" || eventDetail.source === "timeline" || eventDetail.source === "pi") { 229 if (eventDetail.source === "SelectionTool" || eventDetail.source === "timeline" || eventDetail.source === "pi" || eventDetail.source === "cssPanelChange") {
226 if(this.parentComponent.parentComponent.animatedElement.offsetTop != this.tweenedProperties["top"]){ 230 if(this.parentComponent.parentComponent.animatedElement.offsetTop != this.tweenedProperties["top"]){
227 this.tweenedProperties["top"] = this.parentComponent.parentComponent.animatedElement.offsetTop + "px"; 231 this.tweenedProperties["top"] = this.parentComponent.parentComponent.animatedElement.offsetTop + "px";
228 } 232 }