Hi, is it possible in Gio to make a Flex that takes up all of the available
space, but without forcing descendant flex children to take up all the space?
My usecase is to make buttons at the complete end of the window.
Thanks.
This works for me:
layout.Flexed(1, func(gtx C) D {
return layout.Dimensions{
Size: image.Point{X: gtx.Constraints.Max.X, Y:
gtx.Constraints.Max.Y},
}
})
> This works for me:>> layout.Flexed(1, func(gtx C) D {> return layout.Dimensions{> Size: image.Point{X: gtx.Constraints.Max.X, Y:> gtx.Constraints.Max.Y},> }> })
I'm not totally sure that I understand your description of the
problem, but if you found a solution that works for you, excellent!
Cheers,
Chris