Fix Maximize and Minimize animation bug in different navigation scales.