It works as he wants it to in the macOS interface until you try to resize below the minimum window width (except when playing tall portrait mode videos, which reminds me I ought to check the bug tracker). It used to add vertical black bars if you shrank the window further, now it sets a minimum window size vertically as well.
I don’t know if any of that code can be copied (or at least the maths) or if it’s relying on Apple’s UI primitives.
Statistics: Posted by Philip S — 18 Jun 2024 14:43