mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
ux: popup position in text diff view
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -1450,7 +1450,7 @@ namespace SourceGit.Views
|
||||
{
|
||||
if (SelectedChunk is { } chunk)
|
||||
{
|
||||
var top = chunk.Y + (chunk.Height >= 36 ? 8 : 2);
|
||||
var top = chunk.Y + 4;
|
||||
var right = (chunk.Combined || !chunk.IsOldSide) ? 26 : (Bounds.Width * 0.5f) + 26;
|
||||
Popup.Margin = new Thickness(0, top, right, 0);
|
||||
Popup.IsVisible = true;
|
||||
|
||||
Reference in New Issue
Block a user