SharePoint / SharePoint/sp-dev-docs
[SharePoint Copilot Apps preview] " IFrame/container height remains same in expand and collapse mode
@jansenbe is already working on this.
Since Aug 26, 2026.
- Dominant language
- PowerShell
- Stars
- 1.4k
- Forks
- 1.1k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 12
Description
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
- 💥 Internet Explorer
- 💥 Microsoft Edge
- 💥 Google Chrome
- 💥 FireFox
- 💥 Safari
- mobile (iOS/iPadOS)
- mobile (Android)
- not applicable
- other (enter in the "Additional environment details" area below)
Additional environment details
SPFx version. 1.24.0-beta.2
Node.js version : v22.21.1
Describe the bug / error
When an SPFx Copilot Component is rendered inside Microsoft 365 Copilot, the component iframe appears to use the same height in both collapsed and expanded states.
Expanding the component does not trigger a resize of the iframe/container height. As a result, the expanded view is constrained to the same height as the collapsed view.
From browser inspection, the iframe is rendered with a fixed height value:
Steps to reproduce
- Create and deploy an SPFx Copilot Component.
- Open Microsoft 365 Copilot.
- Trigger a response that renders the component.
- Observe the component in collapsed state.
- Expand the component.
- Inspect the generated iframe/container element.
Expected behavior
The iframe/container height should be recalculated when the component is expanded so that the expanded content can be fully displayed.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.