Bounds="parent" is not working when screen is resized
Overview of the problem
Setting bounds="parent" I'm using react-rnd version 10.1.10
My browser is: Chrome
I am sure this issue is not a duplicate? Yes
Description
I set bounds to "parent" - works without problems. But when I resize my browser screen, the element is outside of the parents scope.
Steps to Reproduce
- Set bounds to "parent"
- Resize window
Expected behavior
Container should stay inside.
Actual behavior

Actually this is a react-draggable issue: https://github.com/STRML/react-draggable/issues/363
I'm hitting this when rendering into a react portal that goes into an iframe and not sure if this is related.
Does anyone know how to fix it? Thanks.
I'm facing same issue and the solution from link seems not to be working with Rnd.