[IM] On window resize also altering chosen width