Skip to content

fix(donate-new): give ValidAid iframe a default height - #520

Merged
mohanadft merged 1 commit into
mainfrom
fix/donate-new-validaid-height
Jul 30, 2026
Merged

fix(donate-new): give ValidAid iframe a default height#520
mohanadft merged 1 commit into
mainfrom
fix/donate-new-validaid-height

Conversation

@mohanadft

Copy link
Copy Markdown
Collaborator

Summary

  • The ValidAid embed on /donate-new?variant=validaid had no default height and relied solely on a postMessage resize event, so it rendered at the browser default (~150px) until that message arrived — making the form too small to use.
  • Give the iframe an 800px default height (matching the Qgiv embed), which the resize handler still overrides once ValidAid reports its actual content height.

Test plan

  • Visit /donate-new?variant=validaid and confirm the form is usable-sized on load, before/without the resize postMessage firing
  • Confirm the iframe still resizes correctly once ValidAid's content loads and posts its height

The ValidAid embed on /donate-new relied entirely on a postMessage
resize event to set its height, so it rendered at the browser's ~150px
default until that message arrived, making the form too small to use.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 923c209
Status: ✅  Deploy successful!
Preview URL: https://62c4a2c8.website-aun.pages.dev
Branch Preview URL: https://fix-donate-new-validaid-heig.website-aun.pages.dev

View logs

@mohanadft
mohanadft merged commit 80bcc56 into main Jul 30, 2026
5 checks passed
@mohanadft
mohanadft deleted the fix/donate-new-validaid-height branch July 30, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant