From b387491c47db25d56c1ce25f38d371cfa57e1df1 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Wed, 8 Apr 2020 20:32:25 +0800 Subject: [PATCH] update demo --- doric-demo/src/ComplicatedDemo.ts | 3 ++- doric-demo/src/SliderDemo.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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, }, }),