React RND drag position not working properly with window resize

Viewed 23

The problem is React RND stores the drop area position in pixels like transform: translate(18px, 18px); so If I test this in different screen resolutions with window resize then this is not working as expected and translate is not calculating again with respect to window size. It's going out of the view if I use small resolution.

Any possible way to fix this ?

0 Answers
Related