mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -08: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…
Reference in a new issue