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.

Idea: auto placement

See original GitHub issue

I think it would be useful to re-align the popover if the proposed alignment doesn’t fit within the screen.

I envision something like this:

Popable alignment

The first situation would actually render the second one. However, if you pass something like strictPlacement, then it doesn’t do that.

Let me know what you think. Really excited about this project. Popovers are an important addition to RN, as I mentioned here. I’m glad to see it’s being solved.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nandorojocommented, Mar 20, 2021

Thoughts on default behavior? I imagine it shouldn’t be strict by default, but depends on how much “magic” you think it should have. If strict is default true, I’ll just wrap this in my app and make it false.

1reaction
eveningkidcommented, Mar 19, 2021

Thank you @yusufff for sharing. Popper seemed really hardcore on keeping the popover on screen…

For now, Popable will just invert the position if there’s not enough room at the given position. I think it’s great since this library should remain minimal.

Again, thanks for raising the issue, it’s better this way!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto import | IntelliJ IDEA Documentation - JetBrains
Place the caret at the import statement and press Alt+Enter or use the the Intention action button icon. · Select Optimize imports.
Read more >
Tether placement mode settings options / Auto Placement
I know you changed the placement mode for tethers for console players to make it easier for them. For us PC-Player Keyboard/Mouse Jockeys ......
Read more >
RunAutoPlacer | Altium Designer 17.0 User Manual
Summary. This command is used to set up, and run, one of the PCB Editor's two auto-placement tools. Access. This command is accessed...
Read more >
Automatic Placement Report: How to Report on ... - WordStream
Learn how to use the automatic placement report in the dimensions tab in AdWords to analyze and improve your Google PPC campaigns.
Read more >
Understanding the CSS Grid “Auto-Placement Algorithm”
This is an important concept to grasp. Say “Hello” to grid-auto-flow. If you look at the previous demo you'll see that .item-18 ...
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