Fixup.
This commit is contained in:
parent
716cd6b562
commit
bfd6ae49df
1
main.go
1
main.go
|
@ -200,6 +200,7 @@ func NewFlex(fos ...FlexOption) Flex {
|
||||||
|
|
||||||
return func(ws ...Widget) Widget {
|
return func(ws ...Widget) Widget {
|
||||||
return NewfWidget(func(ctx Context) Context {
|
return NewfWidget(func(ctx Context) Context {
|
||||||
|
// ensure child widgets write options to the right place
|
||||||
extra.cur = index
|
extra.cur = index
|
||||||
opts := extra.data[index].(*FlexOpts)
|
opts := extra.data[index].(*FlexOpts)
|
||||||
f.Init(ctx.ops, ctx.cs)
|
f.Init(ctx.ops, ctx.cs)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user