Add IsAnchor to IAvailableContainer

This commit is contained in:
Eric NGUYEN 2022-08-30 17:40:16 +02:00
parent 5fa9db931f
commit 0b1f7b3f19
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,7 @@ export interface IAvailableContainer {
MinWidth?: number
MaxWidth?: number
Margin?: IMargin
IsAnchor?: boolean
IsFlex?: boolean
AddMethod?: AddMethod
XPositionReference?: XPositionReference

View file

@ -150,7 +150,7 @@ export function GetDefaultContainerProps(type: string,
margin: containerConfig.Margin ?? {},
width,
height,
isAnchor: false,
isAnchor: containerConfig.IsAnchor ?? false,
isFlex: containerConfig.IsFlex ?? containerConfig.Width === undefined,
xPositionReference: containerConfig.XPositionReference ?? XPositionReference.Left,
minWidth: containerConfig.MinWidth ?? 1,