Skip to content

Fix fullscreen paywall overflow for fill-mode videos#6726

Merged
JZDesign merged 3 commits into
mainfrom
monika/fix/video-fill-fullscreen-layout
May 5, 2026
Merged

Fix fullscreen paywall overflow for fill-mode videos#6726
JZDesign merged 3 commits into
mainfrom
monika/fix/video-fill-fullscreen-layout

Conversation

@MonikaMateska

@MonikaMateska MonikaMateska commented Apr 30, 2026

Copy link
Copy Markdown
Member

Checklist

  • If applicable, unit tests
  • If applicable, create follow-up issues for purchases-android and hybrids

Motivation

Fill-mode video components could cause fullscreen paywalls to expand off screen. This happened because the video aspect-ratio layout could grow wider than the available container when presented fullscreen.
Sheet presentation was unaffected.

Resolves: ONCALL-1688

Description

  • Constrain video component width after applying aspect-ratio layout

Note

Low Risk
Low risk layout change: constrains video sizing during aspect-ratio layout and adds targeted tests to prevent regression in fullscreen paywalls.

Overview
Prevents fullscreen Paywalls V2 from expanding off-screen when rendering fill-mode video components by constraining the aspect-ratio container to a computed maxWidth.

VideoComponentView now computes a clamped (non-negative) max width based on padding/margins/borders and passes it through FitToAspectRatio, and new VideoComponentViewTests cover the fullscreen width constraint and max-width calculation edge cases.

Reviewed by Cursor Bugbot for commit ebd2826. Bugbot is set up for automated code reviews on this repo. Configure here.

@MonikaMateska MonikaMateska requested review from a team as code owners April 30, 2026 19:45
@MonikaMateska MonikaMateska added the pr:fix A bug fix label Apr 30, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 9203877. Configure here.

Comment thread RevenueCatUI/Templates/V2/Components/Video/VideoComponentView.swift Outdated
@MonikaMateska MonikaMateska requested a review from a team as a code owner May 1, 2026 08:19
@JZDesign JZDesign enabled auto-merge (squash) May 5, 2026 13:06
@JZDesign JZDesign merged commit 308e1d1 into main May 5, 2026
16 of 18 checks passed
@JZDesign JZDesign deleted the monika/fix/video-fill-fullscreen-layout branch May 5, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants