I built this to show you what I'm talking about. Instead of the Grid expand to fill the Tab, instead the Tab expands to accommodate the Grid.
If you comment out line 22 and uncomment 23, you'll see that the Grid expand to fill the view and then a scrollbar for the Grid (not the entire view) will show up. But if you uncomment line 22 and comment out line 23, you'll see the opposite happening.
The same behavior can be observed by commenting/uncommenting lines 62 and 63.
https://codesandbox.io/p/sandbox/black-morning-kx4vpv
Thanks.