Popover avoid collision after content changes #2413
Unanswered
emadabdulrahim
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What's the recommended way to make Popover re-evaluation position after content has changed?
You can see in the video, initially the Popover renders at the bottom because content height is small enough it fits without colliding with the view port. But after content is loaded, it stays there. When re-open, because the data is now cached, it choose to open at the top because there's more available space than the bottom.
CleanShot.2023-09-26.at.09.52.17.mp4
What's the best way to trigger Popover to re-consider the
side
after content has changed? SettingminHeight
could work but only case by case, as settingminHeight
globally on the Popover itself is undesirable. Perhaps settingkey
prop on Popover so it re-mounts when content changes. What's the recommended solution for this type placement of problem?Beta Was this translation helpful? Give feedback.
All reactions