You would need the "fixed" position. Set a ref to your child Element and determin its bouding rect and the parent bouding rect, then position the element as you wish.
A possible solution might come in in future https://github.com/w3c/csswg-drafts/issues/9107