icsharpcode / AvalonEdit

The WPF-based text editor component used in SharpDevelop
http://avalonedit.net/
MIT License
1.85k stars 469 forks source link

Using VisualLineElementGenerator will cause the caret position wrong #416

Closed SuperSuperPepper closed 10 months ago

SuperSuperPepper commented 10 months ago

When I want to use VisualLineElementGenerator generator custom components like menu replace some text.The caret position will get the wrong position.

image

yellow line is the actual mouse position.

how can I fix this ?

than you

SuperSuperPepper commented 10 months ago

Can use #417 to fix.