AvalonEdit icon indicating copy to clipboard operation
AvalonEdit copied to clipboard

Rectangle selection rendering glitch with horizontal scrolling

Open AngryCarrot789 opened this issue 2 years ago • 3 comments

The text editor has a lot of text in it, such that the horizontal scroll bar is visible. When there is no horizontal scrolling, even if the scroll bar is present, then the rendering is fine (a regular rectangle).

But when I start a rectangle selection while the horizontal scroll bar is slightly to the right, I get this: image

I can't tell if this is intended or if it's just a visual bug, because it doesn't look quite right...

And when you scroll further to the right, it looks even weirder: image

AngryCarrot789 avatar Mar 17 '24 21:03 AngryCarrot789

have you solved it?

alex8900vbs avatar Feb 11 '25 20:02 alex8900vbs

i solved this , in static IEnumerable<Rect> ProcessTextLines in BackgroundGeometryBuilder change this Rect extendSelection = new Rect(Math.Min(left, right) - textView.ScrollOffset.X, y, Math.Abs(right - left), line.Height); on line 268

alex8900vbs avatar Feb 11 '25 21:02 alex8900vbs

That should be fixed in 6.3.1 via #435

christophwille avatar Apr 13 '25 08:04 christophwille