6

I was working on an answer and notice when I copy pasted the SVG code for an answer, the formatting completely barfed. I imagine it has to do with the fact that the SVG path code is just really really long. See the picture:

Enter image description here

And it it helps, this is the answer (just go to edit and edit my question in the code snippet editor). It happens on Chrome version 61.0.3163.79.

1
  • @Kaiido hmm potentially related although that seems to have issues more with number of lines rather than length of the lines.
    – aug
    Commented Sep 20, 2017 at 17:29

1 Answer 1

5

The bug lies in all.css where a rule sets the max-height of <pre> elements to be 600px (around char 93925 in current minified file).

Since there is also an overflow: visible rule set on .CodeMirror pre, when a line of code gets converted in <pre> and has its height > 600px, you'll see its content overflow over the following contents.

A simple fix would be to add in the .CodeMirror pre cssRule a max-height:none; overriding property.

1
  • As a feature, it would be nice to have this option available during snippet stack editing, or at least mentioned somewhere else other than Meta. Commented Feb 15, 2019 at 12:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .