mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
The expanded player window opened at a seeded 16:9 size and was then resized with an animated setFrame once the real aspect ratio / video change landed. Because the video and controls are laid out from the window's live size, they visibly grew/repositioned as the window animated. Force the first resize after each open to snap (no animation) so the player appears at its final fixed layout, and seed the initial window size and aspect constraint from the real video aspect ratio when it is already known (e.g. expanding from the mini bar) to avoid even a jump. Later resizes (switching to a different-aspect video while the window stays open) still animate.