I'm adding a simple adornment that essentially lives over a certain area of the SyntaxEditor. I'm adding it using the Selection adornment layer.
var selectionLayer = SyntaxEditor.ActiveView.GetAdornmentLayer(AdornmentLayerDefinitions.Selection); selectionLayer.AddAdornment( border, new Point(), model, null);
No problem. It shows great, and works correctly when the editor zooms in and out.
However, whenever the editor view scrolls, it remains in the same position relative to the viewport rather than to the top of the document when the text document is scrolled.
In other words, when the document is scrolled down one line, I wish my adornment to scroll up one line. As if the adornment layer was relative to the top of the document rather than the top of the editor.
How do I get my adornment to scroll with the document?