File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Components/Web/src/Virtualization Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4
4
using System ;
5
5
using System . Collections . Generic ;
6
6
using System . Diagnostics ;
7
+ using System . Globalization ;
7
8
using System . Linq ;
8
9
using System . Threading ;
9
10
using System . Threading . Tasks ;
@@ -246,7 +247,7 @@ protected override void BuildRenderTree(RenderTreeBuilder builder)
246
247
}
247
248
248
249
private string GetSpacerStyle ( int itemsInSpacer )
249
- => $ "height: { itemsInSpacer * _itemSize } px;";
250
+ => $ "height: { ( itemsInSpacer * _itemSize ) . ToString ( CultureInfo . InvariantCulture ) } px;";
250
251
251
252
void IVirtualizeJsCallbacks . OnBeforeSpacerVisible ( float spacerSize , float spacerSeparation , float containerSize )
252
253
{
@@ -367,7 +368,7 @@ private ValueTask<ItemsProviderResult<TItem>> DefaultItemsProvider(ItemsProvider
367
368
private RenderFragment DefaultPlaceholder ( PlaceholderContext context ) => ( builder ) =>
368
369
{
369
370
builder . OpenElement ( 0 , "div" ) ;
370
- builder . AddAttribute ( 1 , "style" , $ "height: { _itemSize } px;") ;
371
+ builder . AddAttribute ( 1 , "style" , $ "height: { _itemSize . ToString ( CultureInfo . InvariantCulture ) } px;") ;
371
372
builder . CloseElement ( ) ;
372
373
} ;
373
374
You can’t perform that action at this time.
0 commit comments