From 45ccbbe5714e087786ee4557cf2ec0bb9b917af1 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 15 Oct 2019 21:18:29 +0200 Subject: [PATCH] layout: expand Flex children Signed-off-by: Elias Naur --- layout/flex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/flex.go b/layout/flex.go index 5fb426ad..316926da 100644 --- a/layout/flex.go +++ b/layout/flex.go @@ -93,7 +93,7 @@ func (f *Flex) Flex(gtx *Context, weight float32, w Widget) FlexChild { flexSize = max } } - submainc := Constraint{Max: flexSize} + submainc := Constraint{Min: flexSize, Max: flexSize} cs = axisConstraints(f.Axis, submainc, axisCrossConstraint(f.Axis, cs)) var m op.MacroOp m.Record(gtx.Ops)