In the Gaia camera app, window.innerHeight is always > window.innerWidth because we're locked in portrait orientation.  If a viewport size is specified, we use min to get the smaller dimension. But if no viewport is specified, we use the bigger dimension.

The once place I've seen this function called, the viewport size is omitted, so we're getting the bigger.

Something seems wrong.