Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(fix bug): param dont remenber change
Browse files Browse the repository at this point in the history
  • Loading branch information
tubiaoge committed Aug 6, 2020
1 parent 5c503d8 commit 0425e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/global/getRowlen.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function getMeasureText(value, ctx){
else{
let measureText = ctx.measureText(value), cache = {};
cache.width = measureText.width;
cache.actualBoundingBoxDescent = NaN;
cache.actualBoundingBoxDescent = measureText.actualBoundingBoxDescent;
cache.actualBoundingBoxAscent = measureText.actualBoundingBoxAscent;
if(cache.actualBoundingBoxDescent==null || cache.actualBoundingBoxAscent==null || isNaN(cache.actualBoundingBoxDescent) || isNaN(cache.actualBoundingBoxAscent)){
let commonWord = "M"
Expand Down

0 comments on commit 0425e4e

Please sign in to comment.