Fix code chart animation for wide screens.