From f7c14e54c52bce8875cde81db621dde6f4ff1e34 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Wed, 20 Jun 2012 14:59:49 -0700 Subject: Binding-View : Polish state Signed-off-by: Armen Kesablyan --- js/stage/binding-view.reel/binding-hud.reel/binding-hud.js | 2 +- js/stage/binding-view.reel/binding-view.js | 2 +- 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, { var scrollUpStartX = 5; var scrollUpEndX = scrollUpStartX + this.titleElement.offsetWidth; - var scrollUpStartY = this.titleElement.offsetHeight; + var scrollUpStartY = this.titleElement.offsetHeight + 5; var scrollUpEndY = scrollUpStartY + this.scrollUp.offsetHeight; if(scrollUpStartX < mousePoint.x && (scrollUpEndX) > mousePoint.x) { 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, { this.canvas.height = this.application.ninja.stage.drawingCanvas.offsetHeight; this.clearCanvas(); for(var i= 0; i < this.hudRepeater.childComponents.length; i++) { - 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); + 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); } if(this._isDrawingConnection) { if (this.hudRepeater.childComponents.length > 1) { -- cgit v1.2.3