Services: Fix spacing in tool tip grids
All checks were successful
Test / Run tests (push) Successful in 2m3s

This commit is contained in:
2024-09-22 23:22:23 +02:00
parent 26e549caa6
commit e0fcaf1f53
2 changed files with 3 additions and 3 deletions

View File

@ -242,8 +242,8 @@ namespace Elwig.Services {
AddToolTipCell(grid, "Lieferrecht", 0, 4, 1, false, false, true); AddToolTipCell(grid, "Lieferrecht", 0, 4, 1, false, false, true);
int rowNum = 1; int rowNum = 1;
foreach (var row in data) { foreach (var row in data) {
if (rowNum == 2 || (rowNum != 1 && row.Item1 != null)) rowNum++;
AddToolTipRow(grid, rowNum++, row.Item1, row.Item2, row.Item3, row.Item4, row.Item5); AddToolTipRow(grid, rowNum++, row.Item1, row.Item2, row.Item3, row.Item4, row.Item5);
if (rowNum == 2) rowNum++;
} }
return grid; return grid;
} }

View File

@ -830,8 +830,8 @@ namespace Elwig.Services {
wGrid.ColumnDefinitions.Add(new() { Width = new(50) }); wGrid.ColumnDefinitions.Add(new() { Width = new(50) });
int rowNum = 0; int rowNum = 0;
foreach (var row in weightData) { foreach (var row in weightData) {
if (rowNum == 1 || (rowNum != 0 && row.Item1 != null)) rowNum++;
AddWeightToolTipRow(wGrid, rowNum++, row.Item1, row.Item2, row.Item3, row.Item4, row.Item5); AddWeightToolTipRow(wGrid, rowNum++, row.Item1, row.Item2, row.Item3, row.Item4, row.Item5);
if (rowNum == 1) rowNum++;
} }
var gGrid = new Grid(); var gGrid = new Grid();
@ -845,8 +845,8 @@ namespace Elwig.Services {
AddToolTipCell(gGrid, "Max.", 0, 4, 1, false, false, true); AddToolTipCell(gGrid, "Max.", 0, 4, 1, false, false, true);
rowNum = 1; rowNum = 1;
foreach (var row in gradationData) { foreach (var row in gradationData) {
if (rowNum == 2 || (rowNum != 1 && row.Item1 != null)) rowNum++;
AddGradationToolTipRow(gGrid, rowNum++, row.Item1, row.Item2, row.Item3, row.Item4, row.Item5); AddGradationToolTipRow(gGrid, rowNum++, row.Item1, row.Item2, row.Item3, row.Item4, row.Item5);
if (rowNum == 2) rowNum++;
} }
return (wGrid, gGrid); return (wGrid, gGrid);