fix: text element should be rendered correctly when pasted to a version before measurements change
This commit is contained in:
parent
7e330c8ee1
commit
c447c4e245
@ -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…
x
Reference in New Issue
Block a user