diff --git a/doric-demo/src/LayoutTestDemo.tsx b/doric-demo/src/LayoutTestDemo.tsx index b8e68c23..3c315c38 100644 --- a/doric-demo/src/LayoutTestDemo.tsx +++ b/doric-demo/src/LayoutTestDemo.tsx @@ -19,12 +19,15 @@ function Grid(props: { title: string; innerElement: JSX.Element }) { text={props.title} backgroundColor={Color.parse("#3498db")} textColor={Color.WHITE} - textAlignment={Gravity.CenterX} - layoutConfig={layoutConfig().mostWidth().justHeight()} - height={30} + textAlignment={Gravity.CenterY.left()} + layoutConfig={layoutConfig() + .mostWidth() + .fitHeight() + .configMinHeight(30)} + maxLines={0} /> + VLayout(w=fit ,h=just&weight) +> > Text(w=fit, h=fit) +> > Stack(w=most, h=just) +> Stack(w=most, h=just) +`} + > + + + Content + + + + + + + VLayout(w=fit ,h=just&weight) +> > Text(w=fit, h=fit) +> > Stack(w=most, h=just) +> Stack(w=most, h=just) +`} + > + + + Content + + + + + +