fix: layout() cannot effect configMaxWidth or configMinWidth
This commit is contained in:
4
doric-js/lib/src/util/layoutconfig.d.ts
vendored
4
doric-js/lib/src/util/layoutconfig.d.ts
vendored
@@ -79,6 +79,10 @@ export declare class LayoutConfigImpl implements LayoutConfig, Modeling {
|
||||
} | undefined;
|
||||
alignment: number | undefined;
|
||||
weight: number | undefined;
|
||||
minWidth: number | undefined;
|
||||
maxWidth: number | undefined;
|
||||
minHeight: number | undefined;
|
||||
maxHeight: number | undefined;
|
||||
};
|
||||
}
|
||||
export declare function layoutConfig(): LayoutConfigImpl;
|
||||
|
@@ -96,6 +96,10 @@ export class LayoutConfigImpl {
|
||||
margin: this.margin,
|
||||
alignment: this.alignment ? this.alignment.toModel() : undefined,
|
||||
weight: this.weight,
|
||||
minWidth: this.minWidth,
|
||||
maxWidth: this.maxWidth,
|
||||
minHeight: this.minHeight,
|
||||
maxHeight: this.maxHeight
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user