Compare commits

...

2 commits

Author SHA1 Message Date
connorhanafee
08f5242799
Merge 35ff8cc1fd into 6fc85022ae 2025-04-09 16:24:22 +02:00
connor-p
35ff8cc1fd adding history capture to enable undoing automatic container resize for text 2025-01-31 02:08:15 +00:00

View file

@ -5334,6 +5334,7 @@ class App extends React.Component<AppProps, AppState> {
const minHeight = getApproxMinLineHeight(fontSize, lineHeight);
const newHeight = Math.max(container.height, minHeight);
const newWidth = Math.max(container.width, minWidth);
this.store.shouldCaptureIncrement();
mutateElement(container, { height: newHeight, width: newWidth });
sceneX = container.x + newWidth / 2;
sceneY = container.y + newHeight / 2;