When the window is maximized, and if the android device rotates, the window becomes smaller and gets fixed in the top left corner of the screen.
Windows 7 Ultimate Service pack 1
Android 7.1.2
Connection: USB

When you rotate, it computes the target size, then make it fit inside the display, with some margins (as it does when you start _scrcpy_), keeping its (top-left) position unchanged.
In that case, it's clearly not ideal, but I'm not sure what is the expected behavior.
My expected behaviour is that it would automatically maximize the screen once again after resizing if it's been maximized before rotating the screen.
Oh, it was maximized! Sorry, I missed that part :)
(btw, just for info, instead of maximizing, you could switch to fullscreen with Ctrl+f. I say that because I see people just maximizing while they would prefer fullscreen.)
Issue doesn't appear in fullscreen mode (Ctrl+f). Problem exists only when the window is maximized.
Fixed in dev.
Most helpful comment
(btw, just for info, instead of maximizing, you could switch to fullscreen with Ctrl+f. I say that because I see people just maximizing while they would prefer fullscreen.)