Is there a way to have a window automatically shrink to the view, the way Length::Shrink does for widgets?
Right now the window my application launches in is just the default size, whatever that is. There is some extra space at the bottom, indicating that the window is taller than it needs to be–if I make it resizable, I can drag the bottom up a few inches without any widgets shrinking. My top-level element (in my case it’s a Row) is itself set to shrink to its children (Row::height with Length::Shrink to override Length::Fill strategies in its children), but it seems the window doesn’t care.
I was unable to find a built-in way to apply Length::Shrink-equivalent behavior to the window. The best idea I can come up with is to query the size of the top-level element at some point and manually set the window size to that. Is there a better way that I haven’t found?