This is fixed by resizing the window horizontally to any extent - unfortunately, the way DOM resize event works, the code editor does not take notice of size changing when side panels pop in/out.