marijnh/CodeMirror — pull request #1976 by jvdl (2013-11-22 06:20:24+00:00)
Title: Add a wrapper class to gutters to offer more control using CSS.

After upgrading to the most recent dev snapshot to include the change from d07ec7eee25e557d1109b90e82c6d09a8204127e (#1972) I noticed that the change from 410bf3dc309105bb8dcf10e40f1678957314dea3 changed positioning of the gutter markers in the DOM when lines are updated.

In our implementation we use Line Widgets that span the entire width of the editor and sit above a line. In this scenario, we want to control the position of gutter markers so that they sit below the line widget visually, however because the wrapping element around the gutter markers does not have a CSS class it is not accessible for styling via CSS and thus it is harder to control styling of elements in the gutter.

I noticed this behaviour because when a line widget is added, it is also added immediately before the `

` element which would affect the positioning of the items in the gutter.