Description
When content is pasted repeatedly into a text node, the gap between the right edge of the text selection boundary and the actual end of the text keeps increasing. This appears to be caused by an incorrect text width calculation.
Steps to reproduce
- Drag a text node onto the canvas.
- Double-click the text node to enter edit mode.
- Select all of the current text and copy it.
- Place the cursor at the end of the current text.
- Paste the copied content repeatedly.
- Observe the distance between the right edge of the text selection boundary and the actual end of the text.
Actual behavior
The empty space between the right edge of the text selection boundary and the actual end of the text increases with each paste.
Expected behavior
The distance between the right edge of the selection boundary and the end of the text should remain constant. It should match the distance between the left edge of the selection boundary and the beginning of the text, regardless of how many times content is pasted.
Environment
- OS: macOS
- Browser: Chrome
Description
When content is pasted repeatedly into a text node, the gap between the right edge of the text selection boundary and the actual end of the text keeps increasing. This appears to be caused by an incorrect text width calculation.
Steps to reproduce
Actual behavior
The empty space between the right edge of the text selection boundary and the actual end of the text increases with each paste.
Expected behavior
The distance between the right edge of the selection boundary and the end of the text should remain constant. It should match the distance between the left edge of the selection boundary and the beginning of the text, regardless of how many times content is pasted.
Environment