diff --git a/doric-demo/src/SimpleDemo.ts b/doric-demo/src/SimpleDemo.ts index 3826614d..d8dbceec 100644 --- a/doric-demo/src/SimpleDemo.ts +++ b/doric-demo/src/SimpleDemo.ts @@ -8,65 +8,78 @@ class LayoutDemo extends Panel { stack([], { width: 100, height: 100, - backgroundColor: Color.RED + backgroundColor: Color.RED, + layoutConfig: layoutConfig().just() }), stack([], { width: 100, height: 100, - backgroundColor: Color.GREEN + backgroundColor: Color.GREEN, + layoutConfig: layoutConfig().just() }), stack([], { width: 100, height: 100, - backgroundColor: Color.BLUE + backgroundColor: Color.BLUE, + layoutConfig: layoutConfig().just() }) ], { width: 100, height: 300, + layoutConfig: layoutConfig().just() }), vlayout([ stack([], { width: 100, height: 100, - backgroundColor: Color.GREEN + backgroundColor: Color.GREEN, + layoutConfig: layoutConfig().just() }), stack([], { width: 100, height: 100, - backgroundColor: Color.BLUE + backgroundColor: Color.BLUE, + layoutConfig: layoutConfig().just() }), stack([], { width: 100, height: 100, - backgroundColor: Color.RED + backgroundColor: Color.RED, + layoutConfig: layoutConfig().just() }) ], { width: 100, height: 300, + layoutConfig: layoutConfig().just() }), vlayout([ stack([], { width: 100, height: 100, - backgroundColor: Color.BLUE + backgroundColor: Color.BLUE, + layoutConfig: layoutConfig().just() }), stack([], { width: 100, height: 100, - backgroundColor: Color.RED + backgroundColor: Color.RED, + layoutConfig: layoutConfig().just() }), stack([], { width: 100, height: 100, - backgroundColor: Color.GREEN + backgroundColor: Color.GREEN, + layoutConfig: layoutConfig().just() }) ], { width: 100, height: 300, + layoutConfig: layoutConfig().just() }) ], { width: 400, height: 300, + layoutConfig: layoutConfig().just(), backgroundColor: Color.BLACK }).in(rootView) }