Fix firefox bug.

Fixed layer superposition after save dialog, respects the horizontal rotation animation.