Skip to content

Commit 5d1c807

Browse files
committed
🐛 修复ttt模式的节点调整宽度无效
1 parent 4812835 commit 5d1c807

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/core/render/canvas2d/basicRenderer/textRenderer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ export class TextRenderer {
170170
if (!text) return;
171171
if (text.length === 0) return;
172172
// 如果文本里面没有换行符就直接渲染单行文本,不要计算了
173-
if (!text.includes("\n")) {
174-
this.renderText(text, location, fontSize, color);
175-
return;
176-
}
173+
// if (!text.includes("\n")) {
174+
// this.renderText(text, location, fontSize, color);
175+
// return;
176+
// }
177177
let currentY = 0; // 顶部偏移量
178178
let textLineArray = this.textToTextArrayWrapCache(text, fontSize, limitWidth);
179179
// 限制行数

0 commit comments

Comments
 (0)