From e9f389b885e0b0fdacc40acde6f1175f241cd5c0 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 8 Jul 2025 10:23:12 +0200 Subject: [PATCH] DeliveryService: Fix spacing in tooltip --- Elwig/Services/DeliveryService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Elwig/Services/DeliveryService.cs b/Elwig/Services/DeliveryService.cs index 03db038..d7f86ee 100644 --- a/Elwig/Services/DeliveryService.cs +++ b/Elwig/Services/DeliveryService.cs @@ -1074,7 +1074,7 @@ namespace Elwig.Services { wGrid.ColumnDefinitions.Add(new() { Width = new(50) }); int rowNum = 0; foreach (var row in weightData) { - if (rowNum == 1 || (rowNum != 0 && row.Item1 != null)) rowNum++; + if (rowNum != 0 && row.Item2 == null) rowNum++; AddWeightToolTipRow(wGrid, rowNum++, row.Item1, row.Item2, row.Item3, row.Item4, row.Item5); } @@ -1089,7 +1089,7 @@ namespace Elwig.Services { AddToolTipCell(gGrid, "Max.", 0, 4, 1, false, false, true); rowNum = 1; foreach (var row in gradationData) { - if (rowNum == 2 || (rowNum != 1 && row.Item1 != null)) rowNum++; + if (rowNum != 1 && row.Item2 == null) rowNum++; AddGradationToolTipRow(gGrid, rowNum++, row.Item1, row.Item2, row.Item3, row.Item4, row.Item5); }