How to have a SubViewportContainer resolution update when game window size changes?

Godot Version

4.5.1

Question

I’m using a SubViewportContainer to render a minimap in the corner of the viewport. I’m having and issue where if I maximize my game screen, the map resolution becomes terrible. I’ve tried playing with the options under `display/window/stretch/mode` in the project settings. If I set it to disabled, the minimap does not scale appropriately if I enlarge my game window. If I choose canvas-items or `viewport`, the map window does scale properly, but the SubViewport does not inherit the new resolution and I get a very pixelated map.

The SubViewportContainer has it’s stretch property set, so it should automatically update the SubViewport resolution to match the display size.

Is there any way to have my SubViewport inside of a SubViewportContainer respond to the window size of my app changing?