Change Label instance to type in font size for the little performance
authorpius.lee <pius.lee@samsung.com>
Tue, 7 Jan 2020 02:36:25 +0000 (11:36 +0900)
committerpius.lee <pius.lee@samsung.com>
Tue, 7 Jan 2020 02:38:05 +0000 (11:38 +0900)
Xamarin.Forms.Core/Span.cs

index ab691f3..dddf29d 100644 (file)
@@ -135,7 +135,7 @@ namespace Xamarin.Forms
                }
 
                double IFontElement.FontSizeDefaultValueCreator() =>
-                       Device.GetNamedSize(NamedSize.Default, new Label());
+                       Device.GetNamedSize(NamedSize.Default, typeof(Label));
 
                void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue)
                {