Fix flex again because of wrong order of container

This commit is contained in:
Eric NGUYEN 2022-09-14 11:36:43 +02:00
parent b62aee978b
commit e32e98cddd

View file

@ -285,15 +285,15 @@ export function AddContainers(
/// Handle behaviors here ///
// Initialize default children of the container
InitializeDefaultChild(configuration, containerConfig, newContainer, newCounters);
// Apply the behaviors (flex, rigid, anchor)
ApplyBehaviors(newContainer, current.symbols);
// Then, apply the behaviors on its siblings (mostly for flex)
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
containerIds.push(newContainer.properties.id);
});
@ -549,14 +549,14 @@ function SetContainer(
container.properties.linkedSymbolId,
symbols
);
// sort the children list by their position
UpdateParentChildrenList(container.parent);
// Apply special behaviors: rigid, flex, symbol, anchor
ApplyBehaviors(container, symbols);
// Apply special behaviors on siblings
ApplyBehaviorsOnSiblingsChildren(container, symbols);
// sort the children list by their position
UpdateParentChildrenList(container.parent);
}
/**