fix(affix): properly handle window resize (fixes #552)