Add reflow API method and resize tests

- [x] Position should be translated after window resize
- [x] Position should be translated after resize method