mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 04:58:05 +08:00
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:
parent
79af5022aa
commit
4356cf92c2
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user