diff options
author | Armen Kesablyan | 2012-06-14 15:00:18 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-14 15:00:18 -0700 |
commit | 60e9ea67e0f6d0cf167b6d5068e2e01db5f67966 (patch) | |
tree | 3795f52327f6e3da53d1689d5e67a3164722e357 /js/stage/binding-view.reel/binding-hud.reel | |
parent | d2e2a39feeba51e976d139eddf6f1cf331457f4f (diff) | |
download | ninja-60e9ea67e0f6d0cf167b6d5068e2e01db5f67966.tar.gz |
Binding-Huds draw to component
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/stage/binding-view.reel/binding-hud.reel')
-rwxr-xr-x | js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js index 5053d3bb..4260a66c 100755 --- a/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js +++ b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | |||
@@ -62,6 +62,7 @@ exports.BindingHud = Montage.create(Component, { | |||
62 | this.x = parseInt(this.x); | 62 | this.x = parseInt(this.x); |
63 | this.y = parseInt(this.y); | 63 | this.y = parseInt(this.y); |
64 | this.needsDraw = true; | 64 | this.needsDraw = true; |
65 | this.parentComponent.parentComponent.needsDraw = true; | ||
65 | } | 66 | } |
66 | }, | 67 | }, |
67 | 68 | ||
@@ -70,6 +71,7 @@ exports.BindingHud = Montage.create(Component, { | |||
70 | this._resizedY = e._event.dY; | 71 | this._resizedY = e._event.dY; |
71 | this._resizedX = e._event.dX; | 72 | this._resizedX = e._event.dX; |
72 | this.needsDraw = true; | 73 | this.needsDraw = true; |
74 | this.parentComponent.parentComponent.needsDraw = true; | ||
73 | } | 75 | } |
74 | }, | 76 | }, |
75 | 77 | ||
@@ -81,6 +83,7 @@ exports.BindingHud = Montage.create(Component, { | |||
81 | this._resizedY = 0; | 83 | this._resizedY = 0; |
82 | this.isResizing = false; | 84 | this.isResizing = false; |
83 | this.needsDraw = true; | 85 | this.needsDraw = true; |
86 | this.parentComponent.parentComponent.needsDraw = true; | ||
84 | } | 87 | } |
85 | }, | 88 | }, |
86 | 89 | ||
@@ -98,7 +101,6 @@ exports.BindingHud = Montage.create(Component, { | |||
98 | }, | 101 | }, |
99 | set: function(val) { | 102 | set: function(val) { |
100 | this._x = val; | 103 | this._x = val; |
101 | console.log(this._x); | ||
102 | this.needsDraw = true; | 104 | this.needsDraw = true; |
103 | } | 105 | } |
104 | }, | 106 | }, |
@@ -149,7 +151,6 @@ exports.BindingHud = Montage.create(Component, { | |||
149 | // } | 151 | // } |
150 | this.element.style.top = (this.y + this._resizedY) + "px"; | 152 | this.element.style.top = (this.y + this._resizedY) + "px"; |
151 | this.element.style.left = (this.x + this._resizedX) + "px"; | 153 | this.element.style.left = (this.x + this._resizedX) + "px"; |
152 | console.log("hud",this); | ||
153 | } | 154 | } |
154 | } | 155 | } |
155 | }); \ No newline at end of file | 156 | }); \ No newline at end of file |