Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Context menu is not respecting the bounds of an iframe #32899

Closed
2 tasks done
VamsiModem opened this issue Sep 23, 2024 · 4 comments
Closed
2 tasks done

[Bug]: Context menu is not respecting the bounds of an iframe #32899

VamsiModem opened this issue Sep 23, 2024 · 4 comments

Comments

@VamsiModem
Copy link

Library

React Components / v9 (@fluentui/react-components)

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 Intel(R) Xeon(R) W-2135 CPU @ 3.70GHz
    Memory: 4.20 GB / 63.73 GB
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527

Are you reporting an Accessibility issue?

None

Reproduction

Context menu is not respecting the bounds of an iframe

Bug Description

Power apps is rendered inside an an iframe and when a context menu is opened, it is rendered outside the bounds of the iframe.

Actual Behavior

The context menu is flowing out of the iframe
msedge_RqHV9oiVFn

Expected Behavior

The context menu should respect the boundaries of an iframe

Logs

No response

Requested priority

High

Products/sites affected

Power Apps

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@dmytrokirpa
Copy link
Contributor

Hello @VamsiModem, could you create a standalone reproducible example using Codesandbox or Stackblitz? It's challenging for us to determine whether the issue is with the component itself or the context in which it's used. Thanks!

@dmytrokirpa
Copy link
Contributor

@VamsiModem Check out the Overflow Boundary example that is available on the docsite, it might be helpful in your scenario.

@VamsiModem
Copy link
Author

We tried the boundary and didn't work but setting position on menu fixed the issue
<Menu open={open} onOpenChange={onOpenChange} positioning={{ autoSize: true }}>

@VamsiModem
Copy link
Author

Found a fix, hence closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants