mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
ux: min height of change block in minimap
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
b452e13453
commit
73687689ce
1 changed files with 1 additions and 1 deletions
|
@ -1426,7 +1426,7 @@ namespace SourceGit.Views
|
|||
{
|
||||
var brush = type == Models.TextDiffLineType.Added ? AddedLineBrush : DeletedLineBrush;
|
||||
var y = start / (total * 1.0) * Bounds.Height;
|
||||
var h = count / (total * 1.0) * Bounds.Height;
|
||||
var h = Math.Max(0.5, count / (total * 1.0) * Bounds.Height);
|
||||
context.DrawRectangle(brush, null, new Rect(x, y, width, h));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue