mirror of
https://github.com/yattee/yattee.git
synced 2026-07-19 22:02:10 +00:00
The separate macOS player window (and the inline sheet, which locks to the same window via applyAspectRatioConstraint) could be dragged arbitrarily small. Two AppKit behaviors combined to defeat the intended minimum: - Setting contentAspectRatio makes AppKit's aspect-ratio resize handler take over live drags and stop enforcing minSize/contentMinSize. - NSHostingController resets minSize/contentMinSize to zero at runtime, even with sizingOptions = []. Enforce the floor in windowWillResize(_:to:) from constants instead, growing any under-sized proposal back up to a 360pt minimum height (aspect-scaled width, with a floor for narrow videos) while preserving the proposed ratio.