Skip to content

Commit

Permalink
fix #1099
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightczx committed Nov 16, 2023
1 parent ba6ee9b commit a1037e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ protected override Size MeasureOverride(VirtualizingLayoutContext context, Size
// https://github.com/DGP-Studio/Snap.Hutao/issues/1079
// The first element must be force refreshed otherwise
// it will use the old one realized
ElementRealizationOptions options = i == 0 ? ElementRealizationOptions.ForceCreate : ElementRealizationOptions.None;
// https://github.com/DGP-Studio/Snap.Hutao/issues/1099
// Now we need to refresh the first element of each column
ElementRealizationOptions options = i < numberOfColumns ? ElementRealizationOptions.ForceCreate : ElementRealizationOptions.None;

// Item has not been measured yet. Get the element and store the values
UIElement element = context.GetOrCreateElementAt(i, options);
Expand Down
1 change: 0 additions & 1 deletion src/Snap.Hutao/Snap.Hutao/Extension/StringExtension.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) DGP Studio. All rights reserved.
// Licensed under the MIT license.

using System.Globalization;
using System.Runtime.CompilerServices;

namespace Snap.Hutao.Extension;
Expand Down

0 comments on commit a1037e1

Please sign in to comment.