Fixed resizing animation.
The resize animation now works flawlessly