force inline CodeMirror to redraw when added

Fix for #2754

@njx A workaround due to our ``height:auto`` change