Impossible to make a sticky header in a canvas

I would like to use canvases to help me make design decisions and present other useful information, but often the content is long and needs to scroll. This is fine, except I want some of the controls of the canvas page to be visible anywhere I scroll, so I asked the agent to make them sticky. But for some reason due to how the canvas iframe or internal styles work, it is impossible to make a full page scrolling canvas with a sticky header. You have to force a hardcoded max height which breaks the whole purpose of a canvas being a useful embedded page.

Just make it so the iframe matches the size of the cursor frame so the content inside can scroll naturally instead of the whole iframe being scrolled by cursor (which means the content cannot detect the scroll).

Hi there!

We detected that this may be a bug report, so we’ve moved your post to the Bug Reports category.

To help us investigate and fix this faster, could you edit your original post to include the details from the template below?

Bug Report Template - Click to expand

Where does the bug appear (feature/product)?

  • Editor, Tab & Chat (autocomplete, Composer, in-editor agent)
  • Terminal & commands
  • Models, pricing & API keys (availability, Auto/Max, BYOK/Bedrock)
  • MCP & tools
  • Cloud Agents & Automations (cursor.com/agents, scheduled/event)
  • BugBot & Code Review
  • Cursor CLI
  • Cursor Mobile
  • Remote (SSH / Dev Containers / WSL)
  • Account, billing & login
  • Something else…

Describe the Bug
A clear and concise description of what the bug is.


Steps to Reproduce
How can you reproduce this bug? We have a much better chance at fixing issues if we can reproduce them!

  1. …
  2. …
  3. …

Expected Behavior
What is meant to happen here that isn’t working correctly?


Screenshots / Screen Recordings
If applicable, attach images or videos (.jpg, .png, .gif, .mp4, .mov)


Operating System

  • Windows 10/11
  • MacOS
  • Linux

Version Information

  • For Cursor IDE: Menu → About Cursor → Copy
  • For Cursor CLI: Run agent about in your terminal
IDE:
Version: 2.xx.x
VSCode Version: 1.105.1
Commit: ......

CLI:
CLI Version 2026.01.17-d239e66

For AI issues: which model did you use?
Model name (e.g., Sonnet 4, Tab…)


For AI issues: add Request ID with privacy disabled
Request ID: f9a7046a-279b-47e5-ab48-6e8dc12daba1
For Background Agent issues, also post the ID: bc-…


Additional Information
Add any other context about the problem here.


Does this stop you from using Cursor?

  • Yes - Cursor is unusable
  • Sometimes - I can sometimes use Cursor
  • No - Cursor works, but with this issue

The more details you provide, the easier it is for us to reproduce and fix the issue. Thanks!

This is not a bug as far as I can tell, it’s just a bad implementation of the canvas rendering. It should behave just like any other webpage.

Hey @mattaningram, thanks for raising this.

The canvas panel itself scrolls like a normal page, but the wrapper the canvas renders into currently stops position: sticky (and position: fixed) from attaching to the visible area, so sticky controls never move.

Until that changes, you can get the same effect without a hardcoded number by making your own wrapper the scroll area and sizing it to the panel. You can also ask the agent to do this:

<div style={{ height: "calc(100vh - 48px)", overflowY: "auto" }}>
  <div style={{ position: "sticky", top: 0, zIndex: 1 }}>{/* your controls */}</div>
  {/* the rest of the page */}
</div>

The height follows the panel as you resize it (the 48px accounts for the canvas page’s built-in padding). I’ve just tested it.

The team is aware of this and is looking at making canvases behave like a regular page here.

Thank you! I figured this out eventually, but would be nice to not have to make agent remember in the future.