Disable flex by default
This commit is contained in:
parent
27f2e950c7
commit
a455971a57
1 changed files with 1 additions and 3 deletions
|
@ -234,8 +234,6 @@ export function GetDefaultContainerProps(type: string,
|
|||
height: number,
|
||||
containerConfig: IAvailableContainer): IContainerProperties {
|
||||
const orientation = containerConfig.Orientation ?? Orientation.Horizontal;
|
||||
const defaultIsFlex = (orientation === Orientation.Vertical && containerConfig.Height === undefined) ||
|
||||
(orientation === Orientation.Horizontal && containerConfig.Width === undefined);
|
||||
return ({
|
||||
id: `${type}-${typeCount}`,
|
||||
type,
|
||||
|
@ -249,7 +247,7 @@ export function GetDefaultContainerProps(type: string,
|
|||
width,
|
||||
height,
|
||||
isAnchor: containerConfig.IsAnchor ?? false,
|
||||
isFlex: containerConfig.IsFlex ?? defaultIsFlex,
|
||||
isFlex: containerConfig.IsFlex ?? false,
|
||||
positionReference: containerConfig.PositionReference ?? PositionReference.TopLeft,
|
||||
minWidth: containerConfig.MinWidth ?? 1,
|
||||
maxWidth: containerConfig.MaxWidth ?? Number.MAX_SAFE_INTEGER,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue