Grid that fits contents?
nrbrook opened this issue · comments
Nick Brook commented
I want to use WaterfallGrid to contain some buttons which are laid out in a grid depending on the size available. WaterfallGrid is in a VStack
with a List
and some other views. I want the grid to just fit the buttons, so to fit the content as tightly as possible, and disable scrolling. Is this possible?
Paolo Leonardi commented
Hi @nrbrook, sorry the late reply!
I'm afraid is not possible to use the grid this way.
If the elements don't fit inside the grid frame, the grid becomes scrollable and the property cannot be disabled.