fixing scroll issue for codemirror