bugfix #20, fix current line highlightning
This commit is contained in:
Родитель
59c4209c6c
Коммит
68b66115da
|
@ -20,8 +20,6 @@ using System;
|
|||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
|
||||
using ICSharpCode.AvalonEdit.Rendering;
|
||||
|
||||
namespace ICSharpCode.AvalonEdit.Rendering
|
||||
{
|
||||
sealed class CurrentLineHighlightRenderer : IBackgroundRenderer
|
||||
|
|
|
@ -1234,7 +1234,13 @@ namespace ICSharpCode.AvalonEdit.Rendering
|
|||
DisconnectFromTextView(renderer);
|
||||
InvalidateLayer(renderer.Layer);
|
||||
}
|
||||
|
||||
|
||||
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
|
||||
{
|
||||
base.OnRenderSizeChanged(sizeInfo);
|
||||
InvalidateLayer(KnownLayer.Selection);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
protected override void OnRender(DrawingContext drawingContext)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче