Fixed the animation on maximize button in maximized view. Fixed the animation when the window is inactive.