mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: text element should be rendered correctly when pasted to a version before measurements change
This commit is contained in:
parent
7e330c8ee1
commit
c447c4e245
1 changed files with 1 additions and 1 deletions
|
@ -1653,7 +1653,7 @@ class App extends React.Component<AppProps, AppState> {
|
||||||
this.scene.replaceAllElements(nextElements);
|
this.scene.replaceAllElements(nextElements);
|
||||||
|
|
||||||
newElements.forEach((newElement) => {
|
newElements.forEach((newElement) => {
|
||||||
if (isTextElement(newElement) && isBoundToContainer(newElement)) {
|
if (isTextElement(newElement)) {
|
||||||
const container = getContainerElement(newElement);
|
const container = getContainerElement(newElement);
|
||||||
redrawTextBoundingBox(newElement, container);
|
redrawTextBoundingBox(newElement, container);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue