Fix flex again because of wrong order of container
This commit is contained in:
parent
b62aee978b
commit
e32e98cddd
1 changed files with 6 additions and 6 deletions
|
@ -285,15 +285,15 @@ export function AddContainers(
|
||||||
|
|
||||||
/// Handle behaviors here ///
|
/// Handle behaviors here ///
|
||||||
|
|
||||||
// Initialize default children of the container
|
|
||||||
InitializeDefaultChild(configuration, containerConfig, newContainer, newCounters);
|
|
||||||
|
|
||||||
// Apply the behaviors (flex, rigid, anchor)
|
// Apply the behaviors (flex, rigid, anchor)
|
||||||
ApplyBehaviors(newContainer, current.symbols);
|
ApplyBehaviors(newContainer, current.symbols);
|
||||||
|
|
||||||
// Then, apply the behaviors on its siblings (mostly for flex)
|
// Then, apply the behaviors on its siblings (mostly for flex)
|
||||||
ApplyBehaviorsOnSiblingsChildren(newContainer, current.symbols);
|
ApplyBehaviorsOnSiblingsChildren(newContainer, current.symbols);
|
||||||
|
|
||||||
|
// Initialize default children of the container
|
||||||
|
InitializeDefaultChild(configuration, containerConfig, newContainer, newCounters);
|
||||||
|
|
||||||
// Add to the list of container id for logging purpose
|
// Add to the list of container id for logging purpose
|
||||||
containerIds.push(newContainer.properties.id);
|
containerIds.push(newContainer.properties.id);
|
||||||
});
|
});
|
||||||
|
@ -549,14 +549,14 @@ function SetContainer(
|
||||||
container.properties.linkedSymbolId,
|
container.properties.linkedSymbolId,
|
||||||
symbols
|
symbols
|
||||||
);
|
);
|
||||||
// sort the children list by their position
|
|
||||||
UpdateParentChildrenList(container.parent);
|
|
||||||
|
|
||||||
// Apply special behaviors: rigid, flex, symbol, anchor
|
// Apply special behaviors: rigid, flex, symbol, anchor
|
||||||
ApplyBehaviors(container, symbols);
|
ApplyBehaviors(container, symbols);
|
||||||
|
|
||||||
// Apply special behaviors on siblings
|
// Apply special behaviors on siblings
|
||||||
ApplyBehaviorsOnSiblingsChildren(container, symbols);
|
ApplyBehaviorsOnSiblingsChildren(container, symbols);
|
||||||
|
|
||||||
|
// sort the children list by their position
|
||||||
|
UpdateParentChildrenList(container.parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue