[Solved] Preserve browser window aspect ratio while shrinking [closed]
That’s not a good idea. Resizing the window is frowned upon, and in recent browser versions it’s rarely allowed. See these notes about the rules that Firefox imposes. However, it would be possible, if you are allowed to resize the window, to call window.resizeTo with the right parameters computed using window.innerWidth, window.innerHeight, window.outerWidth, window.outerHeight. Something … Read more