Skip to content

Commit dcda105

Browse files
committed
text wrap bug fix
1 parent fb99957 commit dcda105

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/node-i2d.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5088,8 +5088,8 @@ RenderText.prototype.fitWidth = function () {
50885088
var strLit = "";
50895089
var i = 0;
50905090
var textList = textListByLine.reduce(function (p, c) {
5091-
p.push("\n");
50925091
p = p.concat(c.split(" "));
5092+
p.push("\n");
50935093
return p;
50945094
}, []);
50955095
while(i < textList.length) {

src/modules/canvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ RenderText.prototype.fitWidth = function () {
535535
let strLit = "";
536536
let i = 0;
537537
let textList = textListByLine.reduce(function (p, c) {
538-
p.push("\n");
539538
p = p.concat(c.split(" "));
539+
p.push("\n");
540540
return p;
541541
}, [])
542542
while(i < textList.length) {

0 commit comments

Comments
 (0)