Skip to content

Commit 919fb9f

Browse files
fix: update desktop example with test dashboard overlap fix and latest code
1 parent 064089e commit 919fb9f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

desktop/HandshakeDVPN/MainWindow.xaml.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,6 +2242,9 @@ private void RenderTestStats()
22422242
{
22432243
TestStatsGrid.Children.Clear();
22442244
TestStatsGrid.ColumnDefinitions.Clear();
2245+
TestStatsGrid.RowDefinitions.Clear();
2246+
TestStatsGrid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto });
2247+
TestStatsGrid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto });
22452248
for (int i = 0; i < 6; i++)
22462249
TestStatsGrid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) });
22472250

@@ -2306,6 +2309,7 @@ void AddStat(int col, string label, string value, string color, string sub)
23062309
pill.Child = MakeText($"{s.SpeedMbps:F0}", 8, "Bg0", fontWeight: FontWeights.SemiBold);
23072310
pillRow.Children.Add(pill);
23082311
}
2312+
Grid.SetRow(pillRow, 1);
23092313
Grid.SetColumnSpan(pillRow, 6);
23102314
TestStatsGrid.Children.Add(pillRow);
23112315
}

0 commit comments

Comments
 (0)