From 88a8db247c184214dd8da39ebab1f9a6fa7c0ce9 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Wed, 6 May 2020 15:19:08 +0800 Subject: [PATCH] update navigator demo --- doric-demo/src/NavigatorDemo.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doric-demo/src/NavigatorDemo.ts b/doric-demo/src/NavigatorDemo.ts index 348408e6..916d793a 100644 --- a/doric-demo/src/NavigatorDemo.ts +++ b/doric-demo/src/NavigatorDemo.ts @@ -60,7 +60,11 @@ class NaivgatorDemo extends Panel { }, }), ]).apply({ - layoutConfig: layoutConfig().most().configHeight(LayoutSpec.FIT), + layoutConfig: { + widthSpec: LayoutSpec.JUST, + heightSpec: LayoutSpec.FIT, + }, + width: Environment.screenWidth, gravity: gravity().center(), space: 10, })).apply({