Removed the resizeDuration if there is no resize nessesairy.