aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-20 14:59:49 -0700
committerArmen Kesablyan2012-06-20 14:59:49 -0700
commitf7c14e54c52bce8875cde81db621dde6f4ff1e34 (patch)
treeebe310a3ca0519e6830255c043babf1c86b18b96 /js/stage
parent409e4821d34886199a2106ea854fca6aab6d39c3 (diff)
downloadninja-f7c14e54c52bce8875cde81db621dde6f4ff1e34.tar.gz
Binding-View : Polish state
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/binding-view.reel/binding-hud.reel/binding-hud.js2
-rwxr-xr-xjs/stage/binding-view.reel/binding-view.js2
2 files changed, 2 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 dd88bef7..52bc7236 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
@@ -212,7 +212,7 @@ exports.BindingHud = Montage.create(Component, {
212 212
213 var scrollUpStartX = 5; 213 var scrollUpStartX = 5;
214 var scrollUpEndX = scrollUpStartX + this.titleElement.offsetWidth; 214 var scrollUpEndX = scrollUpStartX + this.titleElement.offsetWidth;
215 var scrollUpStartY = this.titleElement.offsetHeight; 215 var scrollUpStartY = this.titleElement.offsetHeight + 5;
216 var scrollUpEndY = scrollUpStartY + this.scrollUp.offsetHeight; 216 var scrollUpEndY = scrollUpStartY + this.scrollUp.offsetHeight;
217 if(scrollUpStartX < mousePoint.x && (scrollUpEndX) > mousePoint.x) { 217 if(scrollUpStartX < mousePoint.x && (scrollUpEndX) > mousePoint.x) {
218 if(scrollUpStartY < mousePoint.y && (scrollUpEndY) > mousePoint.y) { 218 if(scrollUpStartY < mousePoint.y && (scrollUpEndY) > mousePoint.y) {
diff --git a/js/stage/binding-view.reel/binding-view.js b/js/stage/binding-view.reel/binding-view.js
index 505dd074..73d25824 100755
--- a/js/stage/binding-view.reel/binding-view.js
+++ b/js/stage/binding-view.reel/binding-view.js
@@ -183,7 +183,7 @@ exports.BindingView = Montage.create(Component, {
183 this.canvas.height = this.application.ninja.stage.drawingCanvas.offsetHeight; 183 this.canvas.height = this.application.ninja.stage.drawingCanvas.offsetHeight;
184 this.clearCanvas(); 184 this.clearCanvas();
185 for(var i= 0; i < this.hudRepeater.childComponents.length; i++) { 185 for(var i= 0; i < this.hudRepeater.childComponents.length; i++) {
186 this.drawLine(this.hudRepeater.objects[i].element.offsetLeft,this.hudRepeater.objects[i].element.offsetTop, this.hudRepeater.childComponents[i].element.offsetLeft +3, this.hudRepeater.childComponents[i].element.offsetTop +3); 186 this.drawLine(this.hudRepeater.objects[i].element.offsetLeft,this.hudRepeater.objects[i].element.offsetTop, this.hudRepeater.childComponents[i].element.offsetLeft +3, this.hudRepeater.childComponents[i].element.offsetTop +3, "#CCC", 2);
187 } 187 }
188 if(this._isDrawingConnection) { 188 if(this._isDrawingConnection) {
189 if (this.hudRepeater.childComponents.length > 1) { 189 if (this.hudRepeater.childComponents.length > 1) {