Fix bugs created by using Number()
This commit is contained in:
parent
3c164581ce
commit
dcfb93aa12
4 changed files with 11 additions and 7 deletions
|
@ -209,6 +209,7 @@ export function AddContainer(
|
|||
x = ApplyAddMethod(index, containerConfig, parentClone, x);
|
||||
|
||||
const defaultProperties: IProperties = {
|
||||
...containerConfig.Style,
|
||||
id: `${type}-${count}`,
|
||||
parentId: parentClone.properties.id,
|
||||
x,
|
||||
|
@ -217,9 +218,9 @@ export function AddContainer(
|
|||
height,
|
||||
isRigidBody: false,
|
||||
isAnchor: false,
|
||||
XPositionReference: containerConfig.XPositionReference,
|
||||
...containerConfig.Style
|
||||
XPositionReference: containerConfig.XPositionReference
|
||||
};
|
||||
|
||||
// Create the container
|
||||
const newContainer = new ContainerModel(
|
||||
parentClone,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue