Skip to content

Commit

Permalink
multiple line last whitespace underline
Browse files Browse the repository at this point in the history
  • Loading branch information
wentin committed Dec 11, 2014
1 parent fd3cb78 commit aebda70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
</style>
<link type="text/css" rel="stylesheet" href="css/underline.css" />
<script type="text/javascript" src="js/baseline-ratio.js"></script>
<script type="text/javascript" src="js/underline-canvas.js"></script><!--
<script type="text/javascript" src="js/underline.js"></script>
<script type="text/javascript" src="js/guitar-string.js"></script>
<script type="text/javascript" src="js/class.js"></script> -->
<script type="text/javascript" src="js/class.js"></script>

</head>

Expand Down
6 changes: 3 additions & 3 deletions js/class.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ MultipleUnderline.prototype.update = function(){

this.ctx.beginPath();
this.ctx.moveTo(this.elementStyles.textIndent, this.underlinePosition);
this.ctx.lineTo(lineWidth + this.elementStyles.textIndent - 4, this.underlinePosition);
this.ctx.lineTo(lineWidth + this.elementStyles.textIndent - 5, this.underlinePosition);
this.ctx.stroke();

// draw the font stroke
Expand Down Expand Up @@ -264,7 +264,7 @@ MultipleUnderline.prototype.update = function(){
this.ctx.lineWidth = this.strokeWidth;
this.ctx.beginPath();
this.ctx.moveTo(0, linePositionY + this.underlinePosition);
this.ctx.lineTo(lineWidth - 4, linePositionY + this.underlinePosition);
this.ctx.lineTo(lineWidth - 5, linePositionY + this.underlinePosition);
this.ctx.stroke();

// draw the font stroke
Expand Down Expand Up @@ -294,7 +294,7 @@ MultipleUnderline.prototype.update = function(){
this.ctx.lineWidth = this.strokeWidth;
this.ctx.beginPath();
this.ctx.moveTo(0, linePositionY + this.underlinePosition);
this.ctx.lineTo(lineWidth - 4, linePositionY + this.underlinePosition);
this.ctx.lineTo(lineWidth - 5, linePositionY + this.underlinePosition);
this.ctx.stroke();

// draw the font stroke
Expand Down

0 comments on commit aebda70

Please sign in to comment.