shouldn't we do `this.resized = true` here too?