equal
deleted
inserted
replaced
18 pilot_widget: "Annotation" |
18 pilot_widget: "Annotation" |
19 } |
19 } |
20 |
20 |
21 IriSP.Widgets.Arrow.prototype.draw = function() { |
21 IriSP.Widgets.Arrow.prototype.draw = function() { |
22 this.height = this.arrow_height + this.base_height; |
22 this.height = this.arrow_height + this.base_height; |
23 this.$.addClass("Ldt-Arrow").css("height", this.height + "px"); |
23 this.$.addClass("Ldt-Arrow").css({ |
|
24 height: this.height + "px", |
|
25 "margin-top": "1px" |
|
26 }); |
24 this.paper = new Raphael(this.container, this.width, this.height ); |
27 this.paper = new Raphael(this.container, this.width, this.height ); |
25 window.myArrow = this; |
28 window.myArrow = this; |
26 this.svgArrow = this.paper.path('M0,' + this.height + 'L' + this.width + ',' + this.height); |
29 this.svgArrow = this.paper.path('M0,' + this.height + 'L' + this.width + ',' + this.height); |
27 this.svgArrow.attr({ |
30 this.svgArrow.attr({ |
28 stroke: this.stroke_color, |
31 stroke: this.stroke_color, |