3 writes to _itemSize
Microsoft.AspNetCore.Components.Web (3)
Virtualization\Virtualize.cs (3)
165_itemSize = ItemSize; 344_itemSize = (spacerSeparation - (_lastRenderedPlaceholderCount * _itemSize)) / _lastRenderedItemCount; 351_itemSize = ItemSize;
11 references to _itemSize
Microsoft.AspNetCore.Components.Web (11)
Virtualization\Virtualize.cs (11)
163if (_itemSize <= 0) 240builder.AddContent(renderIndex, _placeholder, new PlaceholderContext(renderIndex, _itemSize)); 278builder.AddContent(renderIndex, _placeholder, new PlaceholderContext(renderIndex, _itemSize)); 295: $"height: {(itemsInSpacer * _itemSize).ToString(CultureInfo.InvariantCulture)}px; flex-shrink: 0; transform: translateY({(numItemsGapAbove * _itemSize).ToString(CultureInfo.InvariantCulture)}px);"; 298=> $"height: {(itemsInSpacer * _itemSize).ToString(CultureInfo.InvariantCulture)}px; flex-shrink: 0;"; 344_itemSize = (spacerSeparation - (_lastRenderedPlaceholderCount * _itemSize)) / _lastRenderedItemCount; 347if (_itemSize <= 0) 363itemsInSpacer = Math.Max(0, (int)Math.Floor(spacerSize / _itemSize) - OverscanCount); 364visibleItemCapacity = (int)Math.Ceiling(containerSize / _itemSize) + 2 * OverscanCount; 460builder.AddAttribute(1, "style", $"height: {_itemSize.ToString(CultureInfo.InvariantCulture)}px; flex-shrink: 0;");