Add setTimeout when checking if event is fired in tests
Bugfix: Prevent body jump in Chrome Canary

Setting width and height to 0 intially hides prevents the body from
jumping in Chrome Canary.