mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
fix: background not fill entire text line (#364)
This commit is contained in:
parent
6d11296eae
commit
9f39a9b295
1 changed files with 3 additions and 2 deletions
|
@ -172,8 +172,9 @@ namespace SourceGit.Views
|
||||||
if (bg == null)
|
if (bg == null)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var y = line.GetTextLineVisualYPosition(line.TextLines[0], VisualYPosition.TextTop) - textView.VerticalOffset;
|
var startY = line.GetTextLineVisualYPosition(line.TextLines[0], VisualYPosition.LineTop) - textView.VerticalOffset;
|
||||||
drawingContext.DrawRectangle(bg, null, new Rect(0, y, width, line.Height));
|
var endY = line.GetTextLineVisualYPosition(line.TextLines[^1], VisualYPosition.LineBottom) - textView.VerticalOffset;
|
||||||
|
drawingContext.DrawRectangle(bg, null, new Rect(0, startY, width, endY - startY));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue