question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Menu position wrong when anchored to upper right corner view

See original GitHub issue

Environment

Paper v2.15.2

Description

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 Menu should display immediately below this anchor, so this would be a bug? Is there a better way to accomplish the effect I am after?

Thanks!

Reproducible Demo

I’ve created a snack which demonstrates the issue: https://snack.expo.io/@holysamosa/c16159

Screenshot

Here’s an example: (I’ve given the anchor view a red background for visibility)

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
HolySamosacommented, 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?

2reactions
HolySamosacommented, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

fixed position menu on top and elements below on anchor links
With what I have problem is the anchor links in the top menu, which link to this same page, that they scroll to...
Read more >
CSS: fixed menus - W3C
A pinned-down menu. The menu you see on the right on this page is simply a UL list. But, it stays fixed when...
Read more >
2021 Outlook Email Navigation Pane on left interfering with ...
The navigation bar now appears vertically on the left side of the screen. It used to be on the bottom and this was...
Read more >
Auto Layout Guide: Working with Constraints in Interface Builder
If you lay out your views using leading and trailing constraints, the views automatically flip positions when switching between left-to-right ...
Read more >
Understanding Object Anchors - Word Ribbon Tips
If you select an inline object, then there is no object anchor to see. Why? Because inline objects are anchored to the place...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found