mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -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)
|
||||
continue;
|
||||
|
||||
var y = line.GetTextLineVisualYPosition(line.TextLines[0], VisualYPosition.TextTop) - textView.VerticalOffset;
|
||||
drawingContext.DrawRectangle(bg, null, new Rect(0, y, width, line.Height));
|
||||
var startY = line.GetTextLineVisualYPosition(line.TextLines[0], VisualYPosition.LineTop) - textView.VerticalOffset;
|
||||
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