Fixed bug where same-size would sometimes break on window resize