Virtual whiteboard for sketching hand-drawn like diagrams
fix: Text wrapping with grid (#4505) (#4506)
zsviczian477cce2ed60d
diff --git a/src/element/textElement.ts b/src/element/textElement.tsindex 43ccc40f57..e6bd6193d5 100644--- a/src/element/textElement.ts+++ b/src/element/textElement.ts@@ -262,7 +262,7 @@ export const wrapText = (const currentWordWidth = getTextWidth(words[index], font);// Start breaking longer words exceeding max width- if (currentWordWidth > maxWidth) {+ if (currentWordWidth >= maxWidth) {// push current line since the current word exceeds the max width// so will be appended in next lineif (currentLine) {