You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Menu position wrong when anchored to upper right corner view #1089
My project is presently using React Native Navigation and I would like to display a Menu when a button is clicked in the native top navigation bar / app bar. Since the top bar is native, it's button can't serve as an anchor for the Menu, so I planned to instead anchor to an invisible View immediately below the native toolbar button.
Unfortunately, when the Menu renders it does not appear below the anchor view in the top-right corner. I'm assuming that the Menushould display immediately below this anchor, so this would be a bug? Is there a better way to accomplish the effect I am after?
Also, while the suggested work-around of wrapping the Menu in a positioned view does move the menu to the right edge of the screen, the menu is still appearing a significant distance below the anchor (as also seen in the original image).
Any ideas?
Reacted by Abhinav Rathore, Chandra Panta Chhetri and Sabri Meviş
@iyadthayyil: Looks like it renders correctly in Expo, but the additional vertical spacing appears when using vanilla React Native on iOS (Android is untested).
Here's the rendering of the same come from your snack running under vanilla React Native:
Reacted by Abhinav Rathore, MaxwellHangry and Omal Perera
Hello 👋, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.
Thanks, @iyadthayyil. The affected project has been on the backburner and I'm presently working to get another app out the door, but I'll test this out in the next couple of weeks and let you know.
Reacted by Dawid Urbaniak and Chandra Panta Chhetri
Menu seems very broken, when I use it in table rows the anchor point gets very confused and causes the page to scroll to and the menu to open in the wrong location. Maintainers need to stop pushing bugs out, and stop github actions closing valid issues
Reacted by stakez, Nirke, Federico Gómez and errorstudent
I found a simple workaround to this, but I agree with @conor909 , I know you guys are probably not getting paid for this, but it would be nice if at least the issues didn't get closed without being solved, that way they might be easier to find for someone else, who, maaaybe, might be up for fixing it themselves.
But in the meantime... we needed not one but two buttons that used the Menu component side by side (though this works with just one aswell if you only have one), what ended up working was simply wrapping the components in a View with flex direction set to row, and justify content set to the flex's end
Activity
iyadthayyil commentedon May 26, 2019
I don't know why this issue is caused.
As a quick workaround wrap the menu in another view with position styles.
jeremy303 commentedon Jun 7, 2019
@iyadthayyil Thanks for the work around!
ferrannp commentedon Jun 13, 2019
Wdyt @Trancever ?
jeremy303 commentedon Jun 13, 2019
Also, while the suggested work-around of wrapping the Menu in a positioned view does move the menu to the right edge of the screen, the menu is still appearing a significant distance below the anchor (as also seen in the original image).
Any ideas?
iyadthayyil commentedon Jun 15, 2019
@HolySamosa can you provide a snack?
It looks fine for me: https://snack.expo.io/@iyadthayyil/menu-position-bug
jeremy303 commentedon Jun 17, 2019
@iyadthayyil: Looks like it renders correctly in Expo, but the additional vertical spacing appears when using vanilla React Native on iOS (Android is untested).
Here's the rendering of the same come from your snack running under vanilla React Native:
github-actions commentedon Dec 15, 2019
Hello 👋, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.
Trancever commentedon Dec 18, 2019
@HolySamosa There was some work done with Menu in recent versions of Paper. Can you tell us if this issue still occurs in v3.4.0?
jeremy303 commentedon Dec 19, 2019
Thanks, @iyadthayyil. The affected project has been on the backburner and I'm presently working to get another app out the door, but I'll test this out in the next couple of weeks and let you know.
elmcapp commentedon Feb 1, 2022
This issues is still happing
conor909 commentedon Feb 2, 2022
Menuseems very broken, when I use it in table rows the anchor point gets very confused and causes the page to scroll to and the menu to open in the wrong location. Maintainers need to stop pushing bugs out, and stop github actions closing valid issuesveliseev93 commentedon Dec 14, 2022
Still have this issue. Please fix Menu component, now it is impossible to use.
federicogomez-stowlog commentedon Jun 15, 2023
I found a simple workaround to this, but I agree with @conor909 , I know you guys are probably not getting paid for this, but it would be nice if at least the issues didn't get closed without being solved, that way they might be easier to find for someone else, who, maaaybe, might be up for fixing it themselves.
But in the meantime... we needed not one but two buttons that used the Menu component side by side (though this works with just one aswell if you only have one), what ended up working was simply wrapping the components in a View with flex direction set to row, and justify content set to the flex's end
ericlyoung commentedon Feb 11, 2025
still a problem in 2025
KANNAN4307 commentedon Feb 19, 2025
the issue still exsists
atheck commentedon Jul 25, 2025
I only have this issue when using new architecture. In legacy architecture it works correctly