From 118a790689a1da5255f8593cb6027b893a8b44a4 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 25 Jul 2016 18:00:57 -0400 Subject: [PATCH] update renders to use fixed font sizes when not using the named ones. --- src/iOS/Controls/CustomButtonRenderer.cs | 5 +++++ src/iOS/Controls/CustomLabelRenderer.cs | 4 ++-- src/iOS/Controls/ExtendedEntryRenderer.cs | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/iOS/Controls/CustomButtonRenderer.cs b/src/iOS/Controls/CustomButtonRenderer.cs index 92b6112b9..5ba122196 100644 --- a/src/iOS/Controls/CustomButtonRenderer.cs +++ b/src/iOS/Controls/CustomButtonRenderer.cs @@ -48,6 +48,11 @@ namespace Bit.iOS.Controls { pointSize *= .6f; } + else if(size != Device.GetNamedSize(NamedSize.Default, typeof(Label))) + { + // not using dynamic font sizes, return + return; + } Control.Font = UIFont.FromDescriptor(Element.Font.ToUIFont().FontDescriptor, pointSize); } diff --git a/src/iOS/Controls/CustomLabelRenderer.cs b/src/iOS/Controls/CustomLabelRenderer.cs index 5471c0c80..ec8a4a3d9 100644 --- a/src/iOS/Controls/CustomLabelRenderer.cs +++ b/src/iOS/Controls/CustomLabelRenderer.cs @@ -60,9 +60,9 @@ namespace Bit.iOS.Controls { pointSize *= .6f; } - else + else if(size != Device.GetNamedSize(NamedSize.Default, typeof(Label))) { - // not using dyanmic font sizes, return + // not using dynamic font sizes, return return; } diff --git a/src/iOS/Controls/ExtendedEntryRenderer.cs b/src/iOS/Controls/ExtendedEntryRenderer.cs index f557ee178..7b780687c 100644 --- a/src/iOS/Controls/ExtendedEntryRenderer.cs +++ b/src/iOS/Controls/ExtendedEntryRenderer.cs @@ -122,6 +122,11 @@ namespace Bit.iOS.Controls { pointSize *= .6f; } + else if(size != Device.GetNamedSize(NamedSize.Default, typeof(Label))) + { + // not using dynamic font sizes, return + return; + } if(!string.IsNullOrWhiteSpace(Element.FontFamily)) {