src/widgets/Arrow.js
branchnew-model
changeset 882 61c384dda19e
parent 880 4c7b33bf2795
child 957 4da0a5740b6c
child 1019 3ab36f402b0c
equal deleted inserted replaced
881:f11b234497f7 882:61c384dda19e
    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,