refactor(react): add setAttributes for dimension changes

This commit is contained in:
moklick
2024-04-22 14:51:23 +02:00
parent 973a3ddd35
commit 7e8bcd8825
5 changed files with 12 additions and 4 deletions
@@ -113,6 +113,7 @@ function ResizeControl({
id,
type: 'dimensions',
resizing: true,
setAttributes: true,
dimensions: {
width: change.width,
height: change.height,
+1 -1
View File
@@ -100,7 +100,7 @@ function applyChange(change: any, element: any): any {
element.measured.width = change.dimensions.width;
element.measured.height = change.dimensions.height;
if (change.resizing) {
if (change.setAttributes) {
element.width = change.dimensions.width;
element.height = change.dimensions.height;
}