Add resize API method and resize tests

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