From e4f694b001365c2185d9a2c968086e5020d3676c Mon Sep 17 00:00:00 2001 From: "pius.lee" Date: Tue, 7 Jan 2020 11:36:25 +0900 Subject: [PATCH] Change Label instance to type in font size for the little performance --- Xamarin.Forms.Core/Span.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xamarin.Forms.Core/Span.cs b/Xamarin.Forms.Core/Span.cs index ab691f3..dddf29d 100644 --- a/Xamarin.Forms.Core/Span.cs +++ b/Xamarin.Forms.Core/Span.cs @@ -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) { -- 2.7.4