upodate flexnode settings

This commit is contained in:
pengfei.zhou
2020-04-10 20:41:43 +08:00
committed by osborn
parent b266fdaa20
commit c70e1cb20c
10 changed files with 59 additions and 38 deletions

View File

@@ -86,6 +86,7 @@ export class FlexLayout extends Group {
}
export function flexlayout(views, config) {
const ret = new FlexLayout;
ret.layoutConfig = layoutConfig().fit();
for (let v of views) {
ret.addChild(v);
}