mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-03 23:57:01 +02:00
fix: text element should be rendered correctly when pasted to a version before measurements change
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user