Closed dmitrif closed 3 years ago
@bengry No, ended up switching to react-popover
as the investment to rewrite the positioning logic here was a bit too high to fit into my timebox.
Hi all, I've recently released version 6 of react-tiny-popover
, which is a completely functional and hooks-based overhaul. The above issue is no longer present, as the API of react-tiny-popover
now allows users to specify a containerParent
whose boundaries are to be adhered to, rather than always defaulting to window
.
This makes the following behavior possible:
I'll close this for now, and apologies for not replying sooner!
Issue When repositioning is
true
, the nudged position is calculated incorrectly for when the target is scrolled off screen.Current
Desired
This is happening due to the nudgePosition function discarding the calculated top position, when it is less than the
windowPadding
value.PR incoming.