mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 15:27:31 -06:00
Resolves #7662. [View zones](https://microsoft.github.io/monaco-editor/typedoc/interfaces/editor.IViewZone.html) are rendered in the editor widget but don’t count as lines themselves. Monaco doesn’t automatically grow them to fit their content (and doesn’t extend the scroll area to fit them when the text is rendered without line breaks), so the height must be calculated manually. Additionally, this changes the remarks to be *above* the line they are attached to. This is more intuitive in my opinion, but can be reverted again if you prefer. Comparison: before:  after: 