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)
163
if (
_itemSize
<= 0)
240
builder.AddContent(renderIndex, _placeholder, new PlaceholderContext(renderIndex,
_itemSize
));
278
builder.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;
347
if (
_itemSize
<= 0)
363
itemsInSpacer = Math.Max(0, (int)Math.Floor(spacerSize /
_itemSize
) - OverscanCount);
364
visibleItemCapacity = (int)Math.Ceiling(containerSize /
_itemSize
) + 2 * OverscanCount;
460
builder.AddAttribute(1, "style", $"height: {
_itemSize
.ToString(CultureInfo.InvariantCulture)}px; flex-shrink: 0;");