Skip to content

Commit

Permalink
fix: enable feature only for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Feb 17, 2023
1 parent 4677add commit c9fccbe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Uno.UI/UI/Xaml/Controls/ItemsWrapGrid/ItemsWrapGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public partial class ItemsWrapGrid : Panel, IVirtualizingPanel
#if XAMARIN_ANDROID
public int FirstCacheIndex => _layout.XamlParent.NativePanel.ViewCache.FirstCacheIndex;
public int LastCacheIndex => _layout.XamlParent.NativePanel.ViewCache.LastCacheIndex;
#endif

partial void OnItemWidthChangedPartial(double oldItemWidth, double newItemWidth)
{
Expand All @@ -28,7 +27,7 @@ partial void OnItemHeightChangedPartial(double oldItemHeight, double newItemHeig
{
_layout?.Refresh();
}

#endif
public ItemsWrapGrid()
{
if (FeatureConfiguration.ListViewBase.DefaultCacheLength.HasValue)
Expand Down

0 comments on commit c9fccbe

Please sign in to comment.