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,
|
height: number,
|
||||||
containerConfig: IAvailableContainer): IContainerProperties {
|
containerConfig: IAvailableContainer): IContainerProperties {
|
||||||
const orientation = containerConfig.Orientation ?? Orientation.Horizontal;
|
const orientation = containerConfig.Orientation ?? Orientation.Horizontal;
|
||||||
const defaultIsFlex = (orientation === Orientation.Vertical && containerConfig.Height === undefined) ||
|
|
||||||
(orientation === Orientation.Horizontal && containerConfig.Width === undefined);
|
|
||||||
return ({
|
return ({
|
||||||
id: `${type}-${typeCount}`,
|
id: `${type}-${typeCount}`,
|
||||||
type,
|
type,
|
||||||
|
@ -249,7 +247,7 @@ export function GetDefaultContainerProps(type: string,
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
isAnchor: containerConfig.IsAnchor ?? false,
|
isAnchor: containerConfig.IsAnchor ?? false,
|
||||||
isFlex: containerConfig.IsFlex ?? defaultIsFlex,
|
isFlex: containerConfig.IsFlex ?? false,
|
||||||
positionReference: containerConfig.PositionReference ?? PositionReference.TopLeft,
|
positionReference: containerConfig.PositionReference ?? PositionReference.TopLeft,
|
||||||
minWidth: containerConfig.MinWidth ?? 1,
|
minWidth: containerConfig.MinWidth ?? 1,
|
||||||
maxWidth: containerConfig.MaxWidth ?? Number.MAX_SAFE_INTEGER,
|
maxWidth: containerConfig.MaxWidth ?? Number.MAX_SAFE_INTEGER,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue