Fixes resize in mobile browsers. Switching back to old implementation