Skip to content

Resize model page iframe dynamically to push footer to bottom#698

Draft
PavelMakarchuk wants to merge 1 commit intomainfrom
model-page-dynamic-height
Draft

Resize model page iframe dynamically to push footer to bottom#698
PavelMakarchuk wants to merge 1 commit intomainfrom
model-page-dynamic-height

Conversation

@PavelMakarchuk
Copy link
Contributor

Summary

  • Listens for postMessage from the embedded policyengine-model app with content height
  • Resizes the iframe to match, so the page scrolls naturally and the footer only appears at the very bottom
  • Falls back to calc(100vh - 200px) until the first height message arrives

Depends on PolicyEngine/policyengine-model#3 being deployed first.

Related

Test plan

  • Deploy policyengine-model#3 first
  • Open /us/model — iframe should fill content height, footer at bottom only when scrolled
  • Resize browser window — iframe should update height

🤖 Generated with Claude Code

Listens for height messages from the embedded policyengine-model
app and resizes the iframe to match content, so the footer only
appears when scrolling to the bottom.

Closes #697

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
policyengine-app-v2 Ready Ready Preview, Comment Feb 17, 2026 9:11pm
policyengine-calculator Ready Ready Preview, Comment Feb 17, 2026 9:11pm

Request Review

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.

Remove footer from the modal page.

1 participant