fix(module: overlay): format number InvariantCulture (#1956)

In cultures where decimal separator is ',' overlay would be ill-positioned

Resolves #1955

Co-authored-by: James Yeung <shunjiey@hotmail.com>
This commit is contained in:
Tomas Bezouska 2021-09-18 01:31:42 +02:00 committed by GitHub
parent 79af5022aa
commit 4356cf92c2

View File

@ -1,4 +1,6 @@
namespace AntDesign.Core.JsInterop.Modules.Components
using System.Globalization;
namespace AntDesign.Core.JsInterop.Modules.Components
{
public class OverlayPosition
{
@ -22,7 +24,7 @@
if (value is null)
return "unset;";
else
return value.ToString() + "px;";
return string.Format(CultureInfo.InvariantCulture, "{0}px;", value);
}
}
}