# Impossible to make a sticky header in a canvas

**URL:** <https://forum.cursor.com/t/impossible-to-make-a-sticky-header-in-a-canvas/176698>\
**Category:** Feature Requests\
**Tags:** canvas\
**Created:** [October 29, 2026, 9:13pm UTC](https://forum.cursor.com/t/impossible-to-make-a-sticky-header-in-a-canvas/176698 "2026-10-29T21:13:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattaningram](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mattaningram/32/111715_2.png) [@mattaningram](https://forum.cursor.com/u/mattaningram)\
**Post date:** [October 29, 2026, 9:13pm UTC](https://forum.cursor.com/t/impossible-to-make-a-sticky-header-in-a-canvas/176698/1 "2026-10-29T21:13:53Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [October 29, 2026, 9:14pm UTC](https://forum.cursor.com/t/impossible-to-make-a-sticky-header-in-a-canvas/176698/2 "2026-10-29T21:14:04Z")

</div>

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](http://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
> 
> ```auto
> 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!

---

<div class="post-metadata">

**Author:** ![mattaningram](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mattaningram/32/111715_2.png) [@mattaningram](https://forum.cursor.com/u/mattaningram)\
**Post date:** [October 29, 2026, 9:14pm UTC](https://forum.cursor.com/t/impossible-to-make-a-sticky-header-in-a-canvas/176698/5 "2026-10-29T21:14:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [November 5, 2026, 4:46pm UTC](https://forum.cursor.com/t/impossible-to-make-a-sticky-header-in-a-canvas/176698/10 "2026-11-05T16:46:54Z")

</div>

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:

```tsx
<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.

---

<div class="post-metadata">

**Author:** ![mattaningram](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mattaningram/32/111715_2.png) [@mattaningram](https://forum.cursor.com/u/mattaningram)\
**Post date:** [November 8, 2026, 8:38pm UTC](https://forum.cursor.com/t/impossible-to-make-a-sticky-header-in-a-canvas/176698/11 "2026-11-08T20:38:14Z")

</div>

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