diff --git a/doric-demo/src/ComplicatedDemo.ts b/doric-demo/src/ComplicatedDemo.ts index 2fc4f440..1de1bbac 100644 --- a/doric-demo/src/ComplicatedDemo.ts +++ b/doric-demo/src/ComplicatedDemo.ts @@ -38,7 +38,8 @@ class MyDemo extends Panel { textColor: Color.WHITE, backgroundColor: colors[idx % colors.length], })) - } + }, + layoutConfig: layoutConfig().most(), }), layoutConfig: layoutConfig().most(), }).also(v => { diff --git a/doric-demo/src/SliderDemo.ts b/doric-demo/src/SliderDemo.ts index 9eb287ae..9e8efbf9 100644 --- a/doric-demo/src/SliderDemo.ts +++ b/doric-demo/src/SliderDemo.ts @@ -44,7 +44,7 @@ class SliderPanel extends Panel { }, layoutConfig: { widthSpec: LayoutSpec.MOST, - heightSpec: LayoutSpec.FIT, + heightSpec: LayoutSpec.MOST, weight: 1, }, }),