Shifted placement of canvas.height calculation

Moved "this.canvas.height" calculation till after the adjustment of lineHeight