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 44using System ;
55using System . Collections . Generic ;
66using System . Diagnostics ;
7+ using System . Globalization ;
78using System . Linq ;
89using System . Threading ;
910using System . Threading . Tasks ;
@@ -246,7 +247,7 @@ protected override void BuildRenderTree(RenderTreeBuilder builder)
246247 }
247248
248249 private string GetSpacerStyle ( int itemsInSpacer )
249- => $ "height: { itemsInSpacer * _itemSize } px;";
250+ => $ "height: { ( itemsInSpacer * _itemSize ) . ToString ( CultureInfo . InvariantCulture ) } px;";
250251
251252 void IVirtualizeJsCallbacks . OnBeforeSpacerVisible ( float spacerSize , float spacerSeparation , float containerSize )
252253 {
@@ -367,7 +368,7 @@ private ValueTask<ItemsProviderResult<TItem>> DefaultItemsProvider(ItemsProvider
367368 private RenderFragment DefaultPlaceholder ( PlaceholderContext context ) => ( builder ) =>
368369 {
369370 builder . OpenElement ( 0 , "div" ) ;
370- builder . AddAttribute ( 1 , "style" , $ "height: { _itemSize } px;") ;
371+ builder . AddAttribute ( 1 , "style" , $ "height: { _itemSize . ToString ( CultureInfo . InvariantCulture ) } px;") ;
371372 builder . CloseElement ( ) ;
372373 } ;
373374
You can’t perform that action at this time.
0 commit comments