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
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.
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
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
Expected behavior
The iframe/container height should be recalculated when the component is expanded so that the expanded content can be fully displayed.