Skip to content

Commit 9bc2c2e

Browse files
committed
ux: popup position in text diff view
Signed-off-by: leo <longshuang@msn.cn>
1 parent 3f9b611 commit 9bc2c2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Views/TextDiffView.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
14501450
{
14511451
if (SelectedChunk is { } chunk)
14521452
{
1453-
var top = chunk.Y + (chunk.Height >= 36 ? 8 : 2);
1453+
var top = chunk.Y + 4;
14541454
var right = (chunk.Combined || !chunk.IsOldSide) ? 26 : (Bounds.Width * 0.5f) + 26;
14551455
Popup.Margin = new Thickness(0, top, right, 0);
14561456
Popup.IsVisible = true;

0 commit comments

Comments
 (0)