Fixed animation's bug in DeckLayoutPanel.